POST https://api.bentley.com/webhooks/{id}/deactivate
This operation can be used to deactivate a webhook. Deactivated webhooks do not forward any events to the callback. Deactivated webhooks are not deleted and can be activated again.
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
json
HeaderNotFound
{"error":{"code":"HeaderNotFound","message":"Header Authorization was not found in the request. Access denied."}}
The 422 (Unprocessable Entity) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax).
json
{"error":{"code":"InvalidDeactivateWebhookRequest","message":"Cannot deactivate webhook.","details":[{"code":"InvalidChange","message":"Webhook subscription '5885fb70-81c1-423b-b556-771b5ab4d55b' cannot be deactivated because it is already deactive.","target":"IsActive"}]}}
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.