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"
}
'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"
}
'For non-platform customers - value must be Bearer <token> where <token> is api key prefixed with cal_
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The start date and time of the out of office period in ISO 8601 format in UTC timezone.
"2023-05-01T00:00:00.000Z"
The end date and time of the out of office period in ISO 8601 format in UTC timezone.
"2023-05-10T23:59:59.999Z"
Optional notes for the out of office entry.
"Vacation in Hawaii"
The ID of the user covering for the out of office period, if applicable.
2
the reason for the out of office entry, if applicable
unspecified, vacation, travel, sick, public_holiday "vacation"
Was this page helpful?