PUT
/
v2
/
destination-calendars
curl --request PUT \
  --url https://api.cal.com/v2/destination-calendars \
  --header 'Content-Type: application/json' \
  --data '{
  "integration": "apple_calendar",
  "externalId": "https://caldav.icloud.com/26962146906/calendars/1644422A-1945-4438-BBC0-4F0Q23A57R7S/",
  "delegationCredentialId": "<string>"
}'
{
  "status": "success",
  "data": {
    "userId": 123,
    "integration": "<string>",
    "externalId": "<string>",
    "credentialId": 123
  }
}

Body

application/json
integration
enum<string>
required

The calendar service you want to integrate, as returned by the /calendars endpoint

Available options:
apple_calendar,
google_calendar,
office365_calendar
Example:

"apple_calendar"

externalId
string
required

Unique identifier used to represent the specific calendar, as returned by the /calendars endpoint

Example:

"https://caldav.icloud.com/26962146906/calendars/1644422A-1945-4438-BBC0-4F0Q23A57R7S/"

delegationCredentialId
string

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required