Replace the team's Webhook assignments. To add a Webhook, get the current assignments and send the IDs you want to keep along with the new ID. Assignments to other teams stay in place.
Requires an Admin API key with the Admin role, access to the team, and Webhooks REST API access. A team-scoped key can't assign a Webhook that belongs only to teams outside its scope. An ID that doesn't identify a Webhook in the account returns HTTP 404. See Admin API errors.
Path Parameters
- idintegerREQUIRED
The unique identifier of the team.
Body Parameters
- webhook_idsarrayREQUIRED
The complete array of Webhook IDs to assign. Every entry must be a non-blank string. Pass
[]to clear all Webhook assignments.
Returns
- dataobject
The result of the assignment update.
- successboolean
True when the assignment update succeeds.
- errorstring | null
Null on success. For Console API errors, this field contains the error message.
1{2"data": {3"success": true4},5"error": null6}
1{2"data": {3"success": true4},5"error": null6}