Calendar

Sync User Microsoft365 Calendars

Sync Microsoft 365 calendars for a user.

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

  1. Creates/updates Microsoft365Calendar records in the database
  2. Creates/updates corresponding Calendar records
  3. Deletes calendars that no longer exist in Microsoft 365
  • 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/microsoft365-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