API Reference/Calendars

Update Calendar

Updates a calendar integration with new credentials or platform while maintaining the same UUID. This operation is performed as an atomic transaction to ensure data integrity. The system automatically unschedules existing bots to prevent duplicates, updates the calendar credentials, and triggers a full resync of all events. Useful when OAuth tokens need to be refreshed or when migrating a calendar between providers. Returns the updated calendar object with its new configuration.

PATCH
/calendars/{uuid}

Authorization

x-meeting-baas-api-key<token>

API key for authentication

In: header

Request Body

application/jsonRequired
oauth_client_idRequiredstring
oauth_client_secretRequiredstring
oauth_refresh_tokenRequiredstring
platformRequiredstring

Fields with value "simple" parse as Kind::Simple. Fields with value "fancy" parse as Kind::SoFancy.

Value in: "Google" | "Microsoft"

Path Parameters

uuidRequiredstring

The UUID identifier

curl -X PATCH "https://api.meetingbaas.com/calendars/string" \
  -H "x-meeting-baas-api-key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "oauth_client_id": "string",
    "oauth_client_secret": "string",
    "oauth_refresh_token": "string",
    "platform": "Google"
  }'

{
  "calendar": {
    "email": "string",
    "google_id": "string",
    "name": "string",
    "resource_id": "string",
    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
  }
}