API action
Change a webhook endpoint
Change where the webhooks go, or what they carry.
About this action
- What it does
- Changes one : its address, its , the email for warnings, or the switch.
- When to use it
- When your moves to a new address. When you want more or fewer kinds of . When you want the guest's phone and email in your webhooks, or want to stop getting them.
- Who can use it
- A only. The key needs the
webhooks:manage. - Address
PATCHhttps://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints/{endpointId}- Before this
- You need the
endpointId. Get it from List your webhook endpoints, or from the answer of Add a webhook endpoint.
What you send
In the address:
- endpointId
- The id of the webhook endpoint. A number, like
15.
Send only the fields you want to change. Send at least one.
- url
- Text. The new address. The rules are the same as for a new endpoint:
https://, a domain name, reachable from the internet. - eventTypes
- List of text. The new list of event types. It takes the place of the old list.
- includeGuestContact
trueorfalse.true: webhooks carry the guest's phone and email.false: they do not.- notifyEmail
- Text, or
null. The email address for warnings about a failing endpoint. Withnull, the warnings go to your account's email. - description
- Text up to 200 letters, or
null. Your own note.
{
"includeGuestContact": true
}Things to know
- A new list of event types replaces the old one. Send every type you want, not only the new one. A type you leave out is not sent to you any more.
- The guest contact switch works from now on. It changes the webhooks made after this request. Webhooks made before it stay as they were.
- A new address starts a new health record. The count of failed tries goes back to 0.
- The signing secret stays the same. A new address does not change the . Your new server must use the same secret.
The request, in your language
Put your key in place of zsk_test_YOUR_KEY.
Save the example above as change-a-webhook-endpoint.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.
curl -X PATCH "https://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints/15" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@change-a-webhook-endpoint.json"What comes back
The is 200. The answer is the endpoint after the change.
{
"statuscode": 200,
"message": "Webhook endpoint updated",
"data": {
"id": 7,
"mode": "live",
"url": "https://example.com/zimmerstack/webhooks",
"description": "Bookings and channel alerts for our PMS",
"apiVersion": "2026-09-01",
"eventTypes": [
"channel.booking.created",
"channel.booking.modified",
"channel.booking.cancelled",
"channel.sync.alert",
"channel.sync.recovered",
"direct.booking.created",
"direct.booking.modified",
"direct.booking.cancelled"
],
"includeGuestContact": true,
"status": "ACTIVE",
"statusReason": null,
"secretVersion": 1,
"previousSecretExpiresAt": null,
"notifyEmail": null,
"createdAt": "2026-12-10T09:30:00.000Z",
"updatedAt": "2026-12-10T12:10:00.000Z",
"lastStoppedAt": null,
"health": {
"state": "healthy",
"consecutiveFailures": 0,
"failingSince": null,
"lastSuccessAt": "2026-12-10T12:00:03.000Z",
"lastFailureAt": null,
"lastErrorMessage": null
}
}
}- url
- The address the webhooks go to now.
- eventTypes
- The event types this endpoint gets now.
- includeGuestContact
truewhen webhooks carry the guest's phone and email.- updatedAt
- When the endpoint was last changed.
Common mistakes
- 400 VALIDATION
- No field was sent, or a value is wrong. The message says which one. For an address, an event type or an email,
data.details.reasonsays why. - 404 WEBHOOK_ENDPOINT_NOT_FOUND
- None of your endpoints has this id. A test key sees only test endpoints, and a live key only live ones. Read the ids again with List your webhook endpoints.
- 403 COMPANY_KEY_REQUIRED
- You used a . Webhook endpoints are managed with a company key.
Other errors this request can give
- 401 API_KEY_INVALID
- The key is not right. Copy it again, all of it, with no space before or after.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
webhooks:manage. - 403 IP_NOT_ALLOWED
- The key only works from the addresses its owner allowed.
- 429 RATE_LIMITED
- Too many requests in a short time. Wait the number of seconds in the
Retry-Afterheader, then send again. - 401 API_KEY_REVOKED
- The key was switched off, or it was replaced and its extra 24 hours are over. Ask the key's owner for the new key. Nothing else makes this key work.
- 409 ARI_NOT_AUTHORITATIVE
- The hotel is not live yet: your software is not its source of truth, so nothing was saved. GET /readiness says what is missing, and POST /go-live makes the switch. To send rates before that, add the header X-ZS-Before-Go-Live: true. It is the same for a company key and for a hotel's own key: a hotel key with ari:read or ari:write can be made before its hotel is live.
- 409 CHANNEL_MANAGER_DISABLED
- The hotel's channel manager is off, so nothing would be sent to an OTA. details.reason says why. not_on_channel_manager: the hotel was never put on it. With a company key, send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there. switched_off: the hotel's owner switched it off. Only the owner can switch it back on.
- 409 PROPERTY_UNAVAILABLE
- The hotel is deleted or is a demo. Or a test key was used on a real hotel, or a live key on a sandbox. Check which key you send. If the key is right, contact the hotel's owner.
Try it now
No code and no install. This box sends a real request to your . It works with a only, so it can never change a real hotel.
Try it here: change a webhook endpoint
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- Webhooks: Receive every booking, check that it is real, and never lose one.
- Guest contact: When you get a guest's phone and email, and for how long.
Words on this page
- Webhook endpoint
- The address of your server where ZimmerStack sends webhooks.
- Event type
- The name of one kind of event, like channel.booking.created for a new OTA booking.
- Guest contact
- A guest's phone number and email address.
- Server
- A computer that runs your software all the time and can be reached over the internet.
- Webhook
- A message ZimmerStack sends to your server when something happens, like a new booking.
- Company key
- The key of a software company. One key works for all the hotels of that company.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Signing secret
- A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- Hotel key
- A key that works for one hotel only. The hotel's owner makes it, or a partner makes it for a hotel it added.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
New here? Start with the partner path or the one-hotel path.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 16:20:28 UTC.