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
| Name | Type | Required | Description |
|---|---|---|---|
endpoint_id | string (uuid) | yes | Webhook endpoint id.uuid |
Request body
application/json · required
| Field | Type | Required | Notes |
|---|---|---|---|
status | string | null | no | Enable or disable the endpoint without deleting it, so its secret and delivery history survive. |
subscribed_events | string[] | null | no | Replacement event list. It is not merged with the previous list.<= 10 items |
url | string | null | no | Replacement 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"
}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
| Field | Type | Required | Notes |
|---|---|---|---|
created_at | string (date-time) | yes | date-time |
environment | string | yes | |
id | string (uuid) | yes | uuid |
signing_secret | string | null | no | |
status | string | yes | |
subscribed_events | string[] | yes | |
updated_at | string (date-time) | yes | date-time |
url | string | yes |
Errors
| Status | Meaning |
|---|---|
401 | Authentication failed |
403 | Required scope is missing |
404 | Resource not found or is not visible to this tenant |
409 | Conflict or idempotency error |
422 | Validation Error |
503 | Public 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.
