Skip to content

API action

Change a hotel(its name and address)

Change the name or the address of a hotel you added.

About this action

What it does
Saves a new name, a new address, or both, for one hotel. Only the fields you send are changed.
When to use it
When a hotel has a new name, has moved, or its address was saved with a mistake. Try it with a first, on a .
Who can use it
A only. The key needs the properties:write.
Address
PATCH https://api.zimmerstack.com/api/v1/connect-api/v1/properties/{propertyId}
Before this
You need the hotel's property id. Get it with List your hotels. With a live key, the hotel must be one you added with Add a hotel.

What you send

In the address:

propertyId
The hotel's property id, a number. It is the id in the answer of List your hotels.

You send only what you want to change. Send one field or more. A field you leave out stays as it is.

name
Text, 1 to 120 letters. Optional. The hotel's new name, as its guests know it.
address
Optional. It can have the four parts below. Send only the parts you want to change.
address: line1
Text, 1 to 200 letters. Optional. The first line of the address.
address: city
Text, 1 to 80 letters. Optional. The city.
address: state
Text, up to 80 letters. Optional. The state. Send empty text, "", to take it away.
address: postalCode
Text, up to 16 letters. Optional. The postal code. Send empty text, "", to take it away.
example: The Lantern House gets a new name and a new first address line
{
  "name": "The Lantern House Shimla",
  "address": {
    "line1": "16 Hill Road"
  }
}

Things to know

  1. Five things cannot be changed here. This request never changes a hotel's country, its , its , its owner or its tax id. Do not send country, currency, timezone, owner, taxId or roomTypes. The answer is then 400 VALIDATION.
  2. Only a hotel you added. With a , the hotel must be one you added. Who pays for the hotel does not matter here. A hotel whose owner let you in with your is changed by its owner.
  3. It changes the hotel in ZimmerStack only. The new name is saved in ZimmerStack. This request does not change the name of the hotel's on an .
  4. With a test key, it changes a sandbox. A test key changes one of your sandboxes. The name of a sandbox always ends in (sandbox). Leave the ending out, and ZimmerStack adds it again.

The request, in your language

Put your key in place of zsk_test_YOUR_KEY.

Save the example above as change-a-hotel.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl -X PATCH "https://api.zimmerstack.com/api/v1/connect-api/v1/properties/61" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@change-a-hotel.json"

What comes back

The is 200. It means: the hotel is saved as the answer shows it. The list changed names the fields that are new.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "id": 61,
    "name": "The Lantern House Shimla",
    "timezone": "Asia/Kolkata",
    "currency": "INR",
    "channelManager": true,
    "sandbox": false,
    "address": {
      "line1": "16 Hill Road",
      "city": "Shimla",
      "state": null,
      "postalCode": null,
      "country": "IN"
    },
    "changed": [
      "name",
      "address.line1"
    ]
  }
}
id
The hotel's property id. It stays the same.
name
The name as it is saved now. The name of a sandbox ends in (sandbox).
address
The address as it is saved now, with all five parts. A part the hotel does not have is empty (null).
address.country
The hotel's country, as a 2-letter code, like IN for India. This request never changes it.
changed
The fields this request changed, like name or address.line1. An empty list, [], means: all you sent was already saved, so nothing changed.
timezone, currency, channelManager, sandbox
The same values as in List your hotels. This request does not change them.

Then use the new name

Send List your hotels to see the hotel with its new name. To remove the hotel later, send the new name in confirm of Remove a hotel. The hotel's room types are changed with Create or change room types.

Common mistakes

400 VALIDATION (nothing to change)
The body is empty, or address has no part in it. Send one field or more.
400 VALIDATION (a field that cannot be changed)
The message names the field. Often it is country inside address, copied from the body of Add a hotel. Take it out. Send only name, line1, city, state and postalCode.
400 VALIDATION (a wrong value)
A value is empty or too long, and the message names it. For example a name of more than 120 letters.
403 COMPANY_KEY_REQUIRED
You used a hotel key. This request works with a company key only.
403 WRITES_SUSPENDED
ZimmerStack has stopped your company's writes for now. Open a support ticket: a ticket still works.
404 PROPERTY_NOT_FOUND
No hotel with this id that your key can work for. Check the id with List your hotels. A test key works for your sandboxes only, and a live key for real hotels only.
409 PROPERTY_NOT_CHANGEABLE
You did not add this hotel: its owner let you in. Then data.details.reason is OWNER_ALLOWED, and only the hotel's owner can change its name and address. Do not send the request again.
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 properties:write.
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-After header, then send again.
401 API_KEY_EXPIRED
The key is past the end date its owner set. Ask the owner for a new key, or for a later end date.
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 IDEMPOTENCY_IN_FLIGHT
The same request is being done right now. Wait a moment and send it again.
409 IDEMPOTENCY_KEY_REUSED
The same X-Idempotency-Key was already used with a different request. Use a new value for a new request.
503 SHIELD_UNAVAILABLE
A problem on our side: the update could not be checked against the hotel's limits, so nothing was saved. Wait the seconds in Retry-After and send again.
503 WRITES_FROZEN
ZimmerStack has paused the updates of every integration for now, never yours alone. Wait the seconds in Retry-After and send again. Reading and bookings still work.

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 hotel

It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.

Go deeper

  • Create a hotel: Create a hotel with one request. With your test key it is made in your sandbox, where no OTA sees it.
  • Add and remove hotels: What each request does, and what it does to your invoice.

Words on this page

Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Currency
The money a hotel sells in, like INR for rupees or USD for dollars.
Time zone
The clock a place uses. A hotel's dates are always dates on its own clock.
Live key
A key that starts with zsk_live_. It works on real hotels.
Vendor code
A short code of your company. A hotel that already uses ZimmerStack enters it to let your software in.
Listing
A hotel's own page on an OTA, with its rooms, photos and prices.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
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.

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 22:53:44 UTC.