Skip to content

Update a webhook

View as Markdown

PATCH/v1/webhooks/{id}Scope webhooks

Changes the name, URL, events or state of a webhook. With rotateSecret the response carries a new signing secret and the old one stops working at once.

Name Type Description
id required string ID of the webhook.
Field Type Description
enabled boolean Pause (false) or resume (true) deliveries.
events string[] New list of events; it replaces the current one. 1 to 20 items. One of ticket.created, ticket.status_changed, ticket.priority_changed, ticket.comment_added, ticket.attachment_added.
name string New name. 2 to 160 characters.
rotateSecret boolean Issue a new signing secret. The old one stops working at once.
url string New HTTPS URL. Up to 1000 characters. A public https URL.
Example
{
"events": [
"ticket.created",
"ticket.status_changed",
"ticket.comment_added"
]
}

200 OK · data

Field Type Description
createdAt date-time When it was created.
enabled boolean Whether deliveries are active.
events string[] Events the webhook receives.
id integer Unique ID.
name string Name in the language of Accept-Language.
secret string Signing secret. Store it now: it is never shown again.
updatedAt date-time When it last changed.
url string HTTPS URL that receives the deliveries.
version string Payload version the webhook receives.
Example
{
"data": {
"id": 7,
"name": "ERP sync",
"url": "https://erp.example.com/hooks/duty",
"events": [
"ticket.created",
"ticket.status_changed"
],
"enabled": true,
"version": "v1",
"secret": "whsec_5b1f0e8c2a9d4e7f8a6b3c1d0e9f2a4b",
"createdAt": "2026-12-01T09:00:00Z",
"updatedAt": "2026-12-01T09:00:00Z"
}
}

Errors share one shape; see Errors for every key.

Terminal window
curl -X PATCH 'https://api.client.service-desk.goldmaster.io/v1/webhooks/7' \
-H "Authorization: Bearer $DUTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
"ticket.created",
"ticket.status_changed",
"ticket.comment_added"
]
}'