PATCH
/
availabilities
/
{id}
Edit an existing availability
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

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

OK, availability edited successfully