Params
Name | Type | Requireness | Default value | Description |
---|---|---|---|---|
property_uid | string | required | none | UID of property. |
days | object | required | none | Array of BatchDay objects. |
BatchDay
Key | Type | Requireness | Default value | Description |
---|---|---|---|---|
date | string | required | none | Date YYYY-MM-DD |
price | float | optional | none | Nightly price. |
currency | string | optional | none | Currency code (3 symbols). Required if price is provided |
is_available | int | optional | none | Is listing available (1) or not (0). |
min_stay | int | optional | none | Minimum stay length. |
notes | string | optional | none | Listing notes for the date. |
Description
Changes the property's calendar data for separate days
Returns UIDs of a requests which can be used as a parameter for the get-request-status method and warnings if any
This endpoint requires the following scope: calendar-control
Request sample
{
"property_uid":"e3ddcd1a-0e3e-4649-91be-c59d7b56",
"days":[
{
"date": "2021-02-14",
"currency": "CAD",
"price": 50,
"min_stay": 3,
"is_available": 0,
"notes": "Blocked"
},
{
"date": "2021-02-15",
"price": 50,
"min_stay": 3,
"is_available": 1
},
{
"date": "2021-02-16",
"currency": "CAD",
"price": 50,
"min_stay": 3
}
]
}
Response sample
{
"data": {
"request_uids": [
"74505422"
],
"warnings": {
"2021-02-14": "Day ignored - can not modify past dates",
"2021-02-15": "Day ignored - currency is mandatory if price specified"
}
}
}