POST
/
v2
/
organizations
/
{orgId}
/
users
/
{userId}
/
ooo
curl --request POST \
  --url https://api.cal.com/v2/organizations/{orgId}/users/{userId}/ooo \
  --header 'Content-Type: application/json' \
  --data '{
  "start": "2023-05-01T00:00:00.000Z",
  "end": "2023-05-10T23:59:59.999Z",
  "notes": "Vacation in Hawaii",
  "toUserId": 2,
  "reason": "vacation"
}'

Headers

Authorization
string

For non-platform customers - value must be Bearer <token> where <token> is api key prefixed with cal_

x-cal-secret-key
string

For platform customers - OAuth client secret key

x-cal-client-id
string

For platform customers - OAuth client ID

Path Parameters

userId
number
required

Body

application/json