تخطَّ إلى المحتوى
توثيق المطورين

Update a webhook endpoint

PATCH /v1/webhooks/{endpoint_id} · Authorization: Bearer

Update a webhook endpoint

PATCH /v1/webhooks/{endpoint_id} · Authorization: Bearer

PATCH/v1/webhooks/{endpoint_id}

Update a webhook endpoint

Updates the URL, subscriptions, or active/disabled status. Requires webhooks:manage.

Credential
Authorization: Bearer
Plane
https://api.bardiyamap.com
Operation id
updateWebhook

Parameters

Path parameters

NameTypeRequiredDescription
endpoint_idstring (uuid)yesWebhook endpoint id.uuid

Request body

application/json · required

FieldTypeRequiredNotes
statusstring | nullnoEnable or disable the endpoint without deleting it, so its secret and delivery history survive.
subscribed_eventsstring[] | nullnoReplacement event list. It is not merged with the previous list.<= 10 items
urlstring | nullnoReplacement URL. Changing it keeps the same endpoint id and secret.1 to 2048 chars
json
{
  "status": "active",
  "subscribed_events": [
    "tracking.location"
  ],
  "url": "https://example.com/bardiya/webhook"
}
Minimal valid body

Request example

shell
curl -X PATCH "https://api.bardiyamap.com/v1/webhooks/whe_01HX9Z6Q3M" \
  -H "Authorization: Bearer $BARDIYA_TRACKING_KEY" \
  -H "Content-Type: application/json" \
  --data '{"status":"active","subscribed_events":["tracking.location"],"url":"https://example.com/bardiya/webhook"}'

Response 200 · WebhookResponse

FieldTypeRequiredNotes
created_atstring (date-time)yesdate-time
environmentstringyes
idstring (uuid)yesuuid
signing_secretstring | nullno
statusstringyes
subscribed_eventsstring[]yes
updated_atstring (date-time)yesdate-time
urlstringyes

Errors

StatusMeaning
401Authentication failed
403Required scope is missing
404Resource not found or is not visible to this tenant
409Conflict or idempotency error
422Validation Error
503Public transport is temporarily unavailable

Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.

PATCH /v1/webhooks/{endpoint_id} is part of the Webhooks group. Values on this page are generated from contract version 1.1.0.