# Update webhook version Updates the webhook version for the project. In version 2, additional parameters are included in the items array. For more information about webhooks, see the Set up order status tracking. Endpoint: PUT /v2/project/{project_id}/admin/webhook/version Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) ID проекта. Вы можете найти этот параметр в Личном кабинете рядом с названием проекта, а также в адресной строке браузера при работе с проектом. URL-адрес имеет следующий формат: https://publisher.xsolla.com//projects/. Example: 44056 ## Request fields (application/json): - `version` (integer, required) Webhook version. Version 1 is used by default. In version 2, the items array includes the following parameters: is_free, is_bonus, and is_bundle_content parameters. Enum: 1, 2 ## Response 401 fields (application/json): - `statusCode` (integer) Example: 401 - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" ## Response 422 fields (application/json): - `statusCode` (number) Код статуса ответа. Example: 422 - `errorCode` (number) Код ошибки. Example: 1102 - `errorMessage` (string) Удобочитаемое сообщение об ошибке. Example: "[0401-1102]: Unprocessable Entity" - `errorMessageExtended` (array) Детали ошибок валидации. Содержит массив ошибок на уровне полей с указанием, какие поля не прошли проверку и почему. - `errorMessageExtended.property` (string) Имя поля, не прошедшего валидацию. Example: "external_id" - `errorMessageExtended.message` (string) Сообщение об ошибке валидации для поля. Example: "The property external_id is required" - `transactionId` (string) Уникальный ID запроса. Example: "da145238620011eb8e24fe6913ff226a" ## Response 204 fields