Webhooks
Update a webhook
Change an endpoint, or turn it on or off.
PUT
Needs
webhooks:update, and a role that can manage notifications (owners and managers) in the endpoint’s workspace and in every workspace it also sends events from. See Permissions.events, when sent, replaces the whole list and needs at least one event. The signing secret doesn’t change.
"active": trueturns the endpoint on again, and clearsfailing_sinceanddisabled_reason."active": falseturns it off: nothing is sent until it is on.account_idssent as[]ornullgives it every account again;workspace_idssent as[]ornullkeeps it to its own workspace.- An endpoint that sends from every workspace (
["*"]) can be changed only by the person who set it up.
Errors
Related
- Get a webhook: the endpoint as it is now.
- Send a test event: check it after a change.
Authorizations
Body
application/json
The events it gets, at least one. This replaces the whole list.
Minimum array length:
1Available options:
post.published, post.partially_published, post.failed, post.account_published, post.account_failed, post.scheduled, post.deleted, post.needs_media, posts.bulk_removed, approval.requested, approval.approved, approval.rejected, account.needs_reconnect, account.expires_soon, account.paused, account.connected, account.disconnected, account.posts_to_put_back, comment.mentioned, comment.received, share.comment_received, review.received, media.generated, media.generation_failed, brand.learned, team.member_joined, webhook.test Also send the events of these workspaces, where your role must let you manage notifications, or ["*"] for every workspace the owner has (the workspace owner only). An id may be a number or a string of digits (15 or "15"); it comes back as a number. Empty or null: this workspace alone.
Response
The webhook after the change.
A signed webhook endpoint.
Available options:
post.published, post.partially_published, post.failed, post.account_published, post.account_failed, post.scheduled, post.deleted, post.needs_media, posts.bulk_removed, approval.requested, approval.approved, approval.rejected, account.needs_reconnect, account.expires_soon, account.paused, account.connected, account.disconnected, account.posts_to_put_back, comment.mentioned, comment.received, share.comment_received, review.received, media.generated, media.generation_failed, brand.learned, team.member_joined, webhook.test