# 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) Project ID. You can find this parameter in your Publisher Account next to the project name and in the browser address bar when working with a project. The URL has the following format: 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) Response status code. Example: 422 - `errorCode` (number) Error code. Example: 1102 - `errorMessage` (string) Readable error message. Example: "[0401-1102]: Unprocessable Entity" - `errorMessageExtended` (array) Validation error details. Contains an array of property-level errors describing which fields failed validation and why. - `errorMessageExtended.property` (string) Name of the field that failed validation. Example: "external_id" - `errorMessageExtended.message` (string) Validation error message for the field. Example: "The property external_id is required" - `transactionId` (string) Unique request ID. Can be used to contact Xsolla support for troubleshooting. Example: "da145238620011eb8e24fe6913ff226a" ## Response 204 fields