Notifications Webhooks
Updates a webhook for an account
Updates the URL or the list of subscribed events for a webhook.
This endpoint uses optimistic locking. You must provide the webhook's current version in the If-Match header. You can get this value from the ETag header of a GET request for this resource.
put/accounts/{account_id}/webhooks/{webhook_id}
Request
- Base URLhttps://api.cint.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
If-Matchstring etag
Example:W/"1234"
The ETag value of the resource you intend to update. This is used for optimistic locking to prevent you from accidentally overwriting changes made by someone else. You can get the ETag from a GET request for the resource. The ETag value should always be wrapped in double quotes, whether it is part of a weak ETag or standalone.
Request body
Example request
{
"url": "https://example.com/webhook",
"events": [
"target-group-updated",
"quota-fill-registered"
],
"compression": "gzip"
}Response
The webhook was updated successfully.
Example response
{
"id": "01JPVZD75DW4KRP7MPFMF6KGZX",
"url": "https://example.com/webhook",
"events": [
"target-group-updated",
"quota-fill-registered"
],
"compression": "gzip",
"created_at": "2023-01-01T23:00:00.000Z",
"updated_at": "2023-01-01T23:05:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.