PATCH
/
webhooks
/
{id}
curl --request PATCH \
  --url https://stoplight.io/mocks/replyteam/reply/765516802/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "targetUrl": "<string>",
  "eventTypes": [
    "<string>"
  ],
  "isActive": true,
  "secret": "<string>",
  "subscriptionLevel": "sequence",
  "sequenceIds": [
    123
  ],
  "teamIds": [
    123
  ],
  "accountId": 123,
  "organizationId": 123
}'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "targetUrl": "https://api.example.com/webhook/reply",
  "eventTypes": [
    "email_replied",
    "email_sent"
  ],
  "isActive": true,
  "secret": "hmac-secret-key",
  "attempt": 0,
  "createdAt": "2024-03-08T12:00:00Z",
  "updatedAt": "2024-03-08T12:00:00Z",
  "subscriptionLevel": "account",
  "accountId": 12345
}

Path Parameters

id
string
required

Webhook Id

Body

application/json

Response

200 - application/json

Webhook subscription updated successfully

The response is of type object.