v1

latestSwagger 2.02026-07-14214688.6 KB
RatePlans

Partially update a rate of the specified rateplan for a defined business day.

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 set the base price for non-derived rateplans if the rateplan is active and already loaded for the specified business day. <br /><br /> A request example:<br /><pre> [ { "op": "replace", "path": "/base_price", "value": 120.00 } ] </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}/rateplans/{rateplanCode}/rates/{businessDay}

Path parameters

hotelIdinteger required

The hotel id the rateplan belongs to.

rateplanCodestring required

The code of the rateplan you want to update the daily rate details for.

businessDaystring date-time required

The business day of the daily rate you want 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