Preview a calendar sync
preview_syncChecks whether a sync between two of the user's calendars could be created — one-way (source into target) or two-way (both directions) — without creating anything. It reports both calendars, whether it could be created, and every blocker it found — all of them, not just the first. max_detail_level is the most this access may copy from the source; pass detail_level to check a specific one. It deliberately does not state how many events would be copied: that is not computed, so it is not claimed. A sync copies continuously, not once.
The source must be a calendar shared with this access and the target one the user released for syncs (list_calendars: sync_target). For two-way, BOTH calendars must be shared and released, and max_reverse_detail_level is the most that may flow back. A positive preview is not a reservation: the same checks run again when create_sync writes, and conditions can change in between. Costs no credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | Default one_way | |
| detail_level | No | Optional: check this detail level against max_detail_level | |
| source_calendar_id | Yes | Calendar whose events are copied (from list_calendars) | |
| target_calendar_id | Yes | Calendar the copies are written into (sync_target in list_calendars) | |
| reverse_detail_level | No | Two-way only: detail level from target back into source; defaults to detail_level |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | Yes | ||
| source | Yes | ||
| target | Yes | ||
| blockers | Yes | ||
| direction | Yes | ||
| can_create | Yes | ||
| max_detail_level | Yes | ||
| max_reverse_detail_level | Yes |