Skip to main content
PATCH
/
v1
/
subscriptions
/
webhooks
/
{id}
Update webhook subscription
curl --request PATCH \
  --url https://api.wellapp.ai/v1/subscriptions/webhooks/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "type": "<string>",
    "attributes": {
      "event": "document.processed",
      "target_url": "<string>",
      "headers": {}
    }
  }
}'
{
  "data": {
    "type": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "attributes": {
      "event": "document.processed",
      "target_url": "<string>",
      "headers": {},
      "created_at": "2023-11-07T05:31:56Z",
      "active": true
    }
  }
}

Headers

Authorization
string
required

Bearer token for authentication

Path Parameters

id
string
required

Body

application/json
data
object
required

Response

Subscription updated

data
object
I