PATCH
/
availabilities
/
{id}
curl --request PATCH \
  --url https://api.cal.com/v1/availabilities/{id} \
  --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

Path Parameters

id
integer
required

ID of the availability to edit

Query Parameters

apiKey
integer
required

Your API key

Body

application/json
Edit an existing availability related to one of your bookings
days
enum<integer>[]

Array of integers depicting weekdays

Available options:
0,
1,
2,
3,
4,
5
scheduleId
integer

ID of schedule this availability is associated with

startTime
string

Start time of the availability

endTime
string

End time of the availability

Response

201
_mintlify/placeholder

OK, availability edited successfully