---
title: "Background/Cron Auto-Sync All Authorized Calendars"
method: POST
path: "/api/v1/calendar/auto-sync-all"
tags: ["Google Calendar Sync"]
---

# Background/Cron Auto-Sync All Authorized Calendars

`POST /api/v1/calendar/auto-sync-all`

## Request

- Base URL: `https://api.erux.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.erux.ai/api/v1/calendar/auto-sync-all`
- Auth: none declared

Automated background worker endpoint (triggered by deployment, cron, or admin).
Iterates through all users who connected Google Calendar and updates their rolling 6-month horizons.
Respects the 7-day rolling cadence guard by default.

## Query parameters

- `min_days` integer: Minimum days elapsed since last sync to trigger re-sync (ADR 0200)
- `force` boolean: Force re-sync even if synced within min_days

## Response `200`

Successful Response

- object

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine.md) · [All operations](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/revisions/9dc718df71b0?raw)
