# 更新Webhook设置信息 更新商店中的Webhook设置信息。 要了解详细信息,请参阅Webhook文档。 Endpoint: PUT /v2/project/{project_id}/admin/webhook Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 ## Request fields (application/json): - `is_enabled` (boolean, required) [游戏服务](/zh/webhooks/operation/successful-order-payment/) Webhook是否已启用。 对于[游戏服务](/zh/webhooks/operation/successful-order-payment/) Webhook,此API调用中指定的设置优先于发布商帐户的[项目设置 > Webhooks](https://publisher.xsolla.com/0/projects/0/edit/webhooks/)部分中配置的设置。 Example: true - `secret` (string, required) 用于[游戏服务](/zh/webhooks/operation/successful-order-payment/) Webhook签名的项目密钥。 对于[游戏服务](/zh/webhooks/operation/successful-order-payment/),此API调用中指定的密钥优先于发布者帐户的[项目设置 > Webhooks](https://publisher.xsolla.com/0/projects/0/edit/webhooks/) 部分中生成的密钥。 Example: "my_secret_key" - `url` (string, required) 您的服务器的URL,用于接收[游戏服务](/zh/webhooks/operation/successful-order-payment/) Webhook。该URL必须可公开访问并使用HTTPS协议,例如https://example.com。您还可以指定Webhook测试工具提供的任意URL。 对于[游戏服务](/zh/webhooks/operation/successful-order-payment/) Webhook,此API调用中指定的设置优先于发布商帐户的[项目设置 > Webhooks](https://publisher.xsolla.com/0/projects/0/edit/webhooks/)部分中配置的设置。 Example: "http://site.ru/webhook" - `version` (integer) Webhook版本。在版本2中,[ 商品](/zh/webhooks/operation/successful-order-payment/#!path=items&t=request)数组包含参数is_free、is_bonus和is_bundle_content,这些在版本1(默认)中不存在。 Enum: 1, 2 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 204 fields ## Response 404 fields ## Response 422 fields