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 required none Nightly price.
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

This endpoint requires one of the following scopes: 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",
            "currency": "CAD",
            "price": 50,
            "min_stay": 3,
            "is_available": 1
        },
        {
            "date": "2021-02-16",
            "currency": "CAD",
            "price": 50,
            "min_stay": 3
        }
    ]
}

Response sample

{
    "data": {
        "request_uids": [
          "74302303",
          "74505311",
          "74505422"
        ]
    }
}