AladiaDocs
Api referenceCalendars

Create the availability of a calendar

Add availability to a calendar

POST
/v2/calendars/availability

Add availability to a calendar

AuthorizationBearer <token>

In: header

Query Parameters

next?string
prev?string
sortBy?string
sortDirection?string

Value in

  • "desc"
  • "asc"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v2/calendars/availability" \  -H "Content-Type: application/json" \  -d '{    "dates": {      "startDate": "2019-08-24T14:15:22Z",      "endDate": "2019-08-24T14:15:22Z"    }  }'
{  "data": [    "string"  ],  "cursor": {    "next": "string",    "prev": "string",    "totalItems": 0  }}