v1

latestSwagger 2.02026-07-14214688.6 KB
Rooms

Partially updates a room.

The hetras API is using this <a href="https://developer.hetras.com/docs/patch" onfocus="this.blur()" target="_blank">Patch Specification</a> to partially update an existing resource. Currently this call only allows to modify condition and housekeeping occupancy status of the room. <br /><br /> A request example:<br /><pre> [ { "op": "replace", "path": "/status/condition", "value": "CleanNotInspected" }, { "op": "replace", "path": "/status/housekeeping_occupancy", "value": "Vacant" } ] </pre><br /> For more details on how the API responds to errors please check our documentation on <a href="https://developer.hetras.com/docs/errors/" onfocus="this.blur()">Error Handling</a>.<br />

patch/api/hotel/v0/hotels/{hotelId}/rooms/{roomNumber}

Path parameters

hotelIdinteger required

The hotel id the room belongs to.

roomNumberstring required

The room number of the room you would like to update.

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Request body

fromstring
opstring
pathstring
valueObject

Response

The update was successful

Object required