Skip to main content
PATCH
/
v0
/
webhook_subscriptions
/
{subscription_id}
Update webhook subscription
curl --request PATCH \
  --url https://api.tryarchitect.com/v0/webhook_subscriptions/{subscription_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "events": [
    "page.version.created"
  ],
  "active": true
}'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "page.version.created"
  ],
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

subscription_id
string
required

The webhook subscription ID

Body

application/json
url
string<uri>

URL to open when action is triggered

events
enum<string>[]
active
boolean

Response

200 - application/json

Successful operation

id
string
required

Unique subscription identifier

url
string<uri>
required

URL to open when action is triggered

events
enum<string>[] | null
required
active
boolean
required

Whether the subscription is active

createdAt
string<date-time>
required
updatedAt
string<date-time>
required