POST
/
availabilities
Creates a new availability
curl --request POST \
  --url https://api.cal.com/v1/availabilities \
  --header 'Content-Type: application/json' \
  --data '{
  "scheduleId": 123,
  "days": [
    1,
    2,
    3,
    5
  ],
  "startTime": "1970-01-01T17:00:00.000Z",
  "endTime": "1970-01-01T17:00:00.000Z"
}'

Authorizations

apiKey
string
query
required

Query Parameters

apiKey
string
required

Your API key

Body

application/json

Edit an existing availability related to one of your bookings

scheduleId
integer
required

ID of schedule this availability is associated with

startTime
string
required

Start time of the availability

endTime
string
required

End time of the availability

days
enum<integer>[]

Array of integers depicting weekdays

Response

OK, availability created