# Calendar

The person's own calendars and the ones they connected, as far as they gave them to the product. Read [calling Spaces](calling-spaces.md) first.

- `GET https://inbox.praecise.com/api/spaces/calendar/calendars`: The person's calendars the product was given
- `GET https://inbox.praecise.com/api/spaces/calendar/busy`: When the person is busy in a span, merged over their calendars
- `GET https://inbox.praecise.com/api/spaces/calendar/events`: The events of a span, each occurrence of a repeating one
- `GET https://inbox.praecise.com/api/spaces/calendar/events/{id}`: One event
- `POST https://inbox.praecise.com/api/spaces/calendar/events`: Make an event; in a connected calendar it is written to its service at once (takes an `Idempotency-Key`)
- `PATCH https://inbox.praecise.com/api/spaces/calendar/events/{id}`: Change an event, optionally only if it is still at the version read (takes an `Idempotency-Key`)
- `DELETE https://inbox.praecise.com/api/spaces/calendar/events/{id}`: Cancel an event (takes an `Idempotency-Key`)
- `GET https://inbox.praecise.com/api/spaces/calendar/changes`: What changed for the person after a mark

## What the person gave

A product sees only what the person granted it on Calendar's own page: busy time only, or events. Without a grant the answer is 403 `not_granted`. A connection that needs the person to connect again is 409 `needs_reconnecting`; the person does that on Calendar's page, not the product.

## Changes

A read of changes returns a mark; asking again with the mark returns only what changed since. A mark too old is 410 `mark_expired`: read everything again.
