Developer
Developer - Calendar

Sync Customer Calendar Events

Sync all calendar events for all users in the current customer.

This endpoint is restricted to developer users only.

WARNING: This is a blocking operation that will run synchronously and may take several seconds to complete. It fetches events from all calendars for all users in the customer. In production, this should be run as a Celery task.

This endpoint is provided for development/debugging purposes.

Returns:

  • Summary of the sync operation including number of users, calendars, and events processed
post/developer/calendar-sync/customer

Response

Successful Response

customer_idstring uuid required

The customer ID

users_totalinteger required

Total number of users

users_processedinteger required

Number of users processed

calendars_totalinteger required

Total number of calendars

calendars_refreshedinteger required

Number of calendars refreshed

total_eventsinteger required

Total number of events saved

errorsstring[]

List of errors encountered

Changes