Update calendar

​

Updates calendar credentials (client_secret, refresh_token) or metadata.

Path Parameters

  • Calendar ID

Headers

  • API key for authentication

  • Should always be application/json

Body·

application/json
  • The client secret for the calendar platform authentication

  • JSON object containing metadata to associate with the calendar

  • The refresh token for accessing the calendar platform

Responses

  • application/json
  • Invalid input

  • Calendar not found

Request Example for patch/api/v1/calendars/{object_id}
curl 'https://app.attendee.dev/api/v1/calendars/{object_id}' \
  --request PATCH \
  --header 'Authorization: Token YOUR_API_KEY_HERE' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_secret": "GOCSPX-NewClientSecret123",
  "refresh_token": "1//05o3zfluegTFVCgYICGHGAUSNgF-L9Ir23dcclPCJW7KmzPhsQaNFcAzNwQkV6uM1gIGID8nBelYDPtbIr123"
}'
Newly Created Calendar

Example response when a calendar is successfully created

{
  "id": "cal_abcdef1234567890",
  "platform": "google",
  "state": "connected",
  "metadata": {
    "tenant_id": "1234567890"
  },
  "deduplication_key": "user-abcd",
  "connection_failure_data": null,
  "created_at": "2025-01-13T10:30:00.123456Z",
  "updated_at": "2025-01-13T10:30:00.123456Z"
}