Update a webhook
Changed onUpdate a webhook and associated subscriptions.
Each combination of target URL, event type and filter must be unique within your workspace; duplicates are rejected with a 409. Changing the target URL re-checks the webhook's existing subscriptions against the new URL.
Required scopes: webhook:read-write.
Supported token levels: workspace.
Request
- Base URLhttps://api.attio.com
- URLhttps://api.attio.com/v2/webhooks/{webhook_id}
- AuthOAuth 2Authorization code: https://app.attio.com/authorizeToken URL: https://app.attio.com/oauth/token scopes: webhook:read-write
Path parameters
A UUID which identifies the webhook.
Request body
Example request
{
"data": {
"target_url": "https://example.com/webhook",
"subscriptions": [
{
"event_type": "note.created"
}
]
}
}Response
Success
Example response
{
"data": {
"target_url": "https://example.com/webhook",
"subscriptions": [
{
"event_type": "note.created"
}
],
"id": {
"workspace_id": "14beef7a-99f7-4534-a87e-70b564330a4c",
"webhook_id": "23e42eaf-323a-41da-b5bb-fd67eebda553"
},
"status": "active",
"created_at": "2023-04-27T13:22:49.061281000Z"
}
}Changes
- warning
added the new
activity-attribute.createdenum value to the///response property for the response status - warning
added the new
activity-attribute.updatedenum value to the///response property for the response status - warning
added the new
activity-record.createdenum value to the///response property for the response status - warning
added the new
activity-record.deletedenum value to the///response property for the response status - warning
added the new
activity.createdenum value to the///response property for the response status - warning
added the new
activity.deletedenum value to the///response property for the response status - warning
added the new
activity.updatedenum value to the///response property for the response status - info
added the new
activity-attribute.createdenum value to the request property/// - info
added the new
activity-attribute.updatedenum value to the request property/// - info
added the new
activity-record.createdenum value to the request property/// - info
added the new
activity-record.deletedenum value to the request property/// - info
added the new
activity.createdenum value to the request property/// - info
added the new
activity.deletedenum value to the request property/// - info
added the new
activity.updatedenum value to the request property///
- warning
- info
added the non-success response with the status
- info