API docs / API reference / Webhooks

Update a webhook

PATCH /v1/webhooks/{webhook_id}

Path parameters

webhook_id required
string
—

Body

url
https url
—
events
array
—

Request

curl -X PATCH "https://amarkos.com/api/v1/webhooks/{webhook_id}" \
  -H "Authorization: Bearer $AMARKOS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": [
      "*"
    ]
  }'

Response · 200

{
  "id": "wh_1f2e3d4c5b6a47988a7b6c5d4e3f2a1b",
  "events": [
    "*"
  ]
}

← List webhooks · Send a test event →