Params

NameTypeRequirenessDefault valueDescription
property_uidstringrequirednoneUID of property.
daysobjectrequirednoneArray of BatchDay objects.

BatchDay

KeyTypeRequirenessDefault valueDescription
datestringrequirednoneDate YYYY-MM-DD
pricefloatoptionalnoneNightly price.
currencystringoptionalnoneCurrency code (3 symbols). Required if price is provided
is_availableintoptionalnoneIs listing available (1) or not (0).
min_stayintoptionalnoneMinimum stay length.
notesstringoptionalnoneListing 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"
      }
    }
}