Update a webhook endpoint
Changes the URL, events or enabled flag, or rotates the signing secret. Fields left out keep their values. The response includes secret only when it was rotated.
POST
/ settings/ webhooks/ updateServerhttps://api.medialit.cloud
Authentication
Body
Authentication
Bearer token (JWT)
Or API key in the
x-medialit-apikeyheader
Request body
application/json
requiredidstringrequiredurlstringeventsarray<string>Events to send. Defaults to every event.
enabledbooleanrotateSecretbooleanReplace the signing secret with a new one.
Responses
200The updated endpoint
idstringrequiredurlstringrequiredeventsarray<string>requiredEvents to send. Defaults to every event.
enabledbooleanrequiredsecretHintstringrequiredThe signing secret's last characters.
secretstringSigning secret (Standard Webhooks). Returned only when the endpoint is created or its secret rotated; read it with POST /settings/webhooks/secret.
createdAtstring (date-time)requiredupdatedAtstring (date-time)required
400Bad Request
errorstringrequired
401Unauthorized
errorstringrequired
403Forbidden
No response body.
404Not Found
errorstringrequired
500Internal Server Error
errorstringrequired
