Update a webhook
PUT /webhooks/{uuid}
/webhooks/{uuid}Changes the title, URL, secret, events, audience or active state of a webhook. Send only the fields you want to change.
Scope: scope cannot change: sending a different value fails with 422, and omitting it keeps the current one. Events must belong to the scope of the webhook, and a crm webhook never has audience.
When to use: To point the webhook to a new URL, change which events it receives, rotate the secret, or turn it back on after it was deactivated.
When not to use: To stop deliveries for good use delete_webhook.
Permissions: Requires the manager role or higher, or the account.integrations.manage capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the webhook. Get it with list_webhooks.
The updated Webhook resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/webhooks/4a9d1e75-3b62-4c08-a5f7-d0e2b6c83914" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "scope": "marketing", "title": "string", "event_types": [ "member_subscribed" ], "url": "http://example.com", "secret": "string", "active": true, "audience": "/entity/1" }'{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "scope": "marketing", "title": "string", "event_types": [ "member_subscribed" ], "url": "http://example.com", "secret": "string", "active": true, "audience": "/entity/1", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}