v1

latestOpenAPI 3.0.02026-07-26866217.8 KB
Availability

Update Property Availabilities

Use this endpoint to update property availabilities. <br><br>Please be aware that a successful response indicates only that we have initiated an asynchronous task to handle your submission; it <b>DOES NOT</b> ensure that the channel inventories have been modified successfully. If you wish to view detailed results of the task execution, please visit the Host Portal.

post/availabilities

Request body

property_idsinteger[] required

Specify the property IDs to update.

start_datestring date

Specify the update's start date using the YYYY-MM-DD format. This must be either the current date or a future date. <br>If omitted, the dates becomes mandatory.

end_datestring date

Specify the update's end date using the YYYY-MM-DD format. This must be a future date within 3 years from now. <br>If omitted, the dates becomes mandatory.

datesstring[]

Provide a list of dates for the update in YYYY-MM-DD format. Dates must be today's date or later. <br>If start_date and end_date are specified, the list of dates will not be considered.

availableboolean required

Set the availability status: true for available or false for unavailable.

Response

The request has been successfully submitted.

request_idstring required

Unique identifier for the request.

error_codeinteger required

Numeric error code representing the status of the response. A value of 200 indicates success. <br> See the Error Codes section for more information.

error_msgstring required

Message detailing the status of the response.

Example response

{
  "error_msg": "Done."
}