POST
/
v2
/
calendars
/
{calendar}
/
disconnect
curl --request POST \
  --url https://api.cal.com/v2/calendars/{calendar}/disconnect \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 10
}'
{
  "status": "success",
  "data": {
    "id": 123,
    "type": "<string>",
    "userId": 123,
    "teamId": 123,
    "appId": "<string>",
    "invalid": true
  }
}

Path Parameters

calendar
enum<string>
required
Available options:
apple,
google,
office365

Body

application/json
id
integer
required

Credential ID of the calendar to delete, as returned by the /calendars endpoint

Example:

10

Response

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

"success"

data
object
required