Skip to main content
PATCH
/
v2
/
webhooks
/
{webhook_id}
Update a webhook
curl --request PATCH \
  --url https://api.attio.com/v2/webhooks/{webhook_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "target_url": "https://example.com/webhook",
    "subscriptions": [
      {
        "event_type": "note.created",
        "filter": {
          "$and": [
            {
              "field": "parent_object_id",
              "operator": "equals",
              "value": "97052eb9-e65e-443f-a297-f2d9a4a7f795"
            }
          ]
        }
      }
    ]
  }
}
'
{
  "data": {
    "target_url": "https://example.com/webhook",
    "subscriptions": [
      {
        "event_type": "note.created",
        "filter": {
          "$and": [
            {
              "field": "parent_object_id",
              "operator": "equals",
              "value": "97052eb9-e65e-443f-a297-f2d9a4a7f795"
            }
          ]
        }
      }
    ],
    "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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.attio.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

This API uses OAuth 2.0 with the authorization code grant flow.

Path Parameters

webhook_id
string<uuid>
required

A UUID which identifies the webhook.

Example:

"23e42eaf-323a-41da-b5bb-fd67eebda553"

Body

application/json
data
object
required

Response

Success

Success

data
object
required