Calendar

Sync User Google Calendars

Sync Google calendars for a user.

Fetches all calendars from the specified user's Google account and:

  1. Creates/updates GoogleCalendar records in the database
  2. Creates/updates corresponding Calendar records
  3. Deletes calendars that no longer exist in Google
  • user_id: Optional user ID to sync calendars for. If not provided, syncs current user's calendars.

Returns the list of synced calendars.

post/calendars/google-calendars/sync

Query parameters

user_idstring uuid nullable

Optional user ID to sync calendars for. If not provided, syncs current user's calendars.

Optional user ID to sync calendars for. If not provided, syncs current user's calendars.

Response

Successful Response

messagestring required
synced_countinteger required

Changes