Xsolla-logo

Update information about webhook settings

put/v2/project/{project_id}/admin/webhook

Updates the information about the webhook settings in Store. Check webhooks documentation to learn more.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
Request Body schema: application/json

Information about webhook settings.

url
required
string
secret
required
string
is_enabled
required
boolean
Responses
204

Information about webhook settings was successfully updated.

401

Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.

404

Information about webhook settings with passed project_id does not exists. Make sure you used correct project_id or created webhook earlier.

422

Information about webhook settings contains empty URL.

Request samples
application/json
{}
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}