# calendar_sync

Sync Google Calendar

## Beschreibung

Request a Google calendar refresh for an explicit range of at most 62 days, using ISO 8601 timestamps with UTC offsets. Requires access to that calendar. Returns immediately; use calendar_event_list afterward to check last_synced_at and range_synchronized. Local calendars need no synchronization.

## Zugriff

Zugriffsprofil: `gated`. Module: `calendar`.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

## Parameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | Ja |  |
| `calendar_id` | string | Ja |  |
| `from` | string | Ja |  |
| `to` | string | Ja |  |

## Eingabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "calendar_id": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    }
  },
  "required": [
    "account_id",
    "calendar_id",
    "from",
    "to"
  ],
  "type": "object"
}
```

## Ausgabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "queued": {
      "type": "boolean"
    },
    "calendar_id": {
      "type": "string"
    },
    "last_synced_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "queued",
    "calendar_id"
  ],
  "type": "object"
}
```
