# setEmailDigestCadence

When your notification emails go out: AS_IT_HAPPENS (one email a few minutes after a notification) or DAILY (one email each morning at 8am in your timezone; AI hand-offs and workflow pages still arrive right away). Yours only.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "setEmailDigestCadence", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `cadence`: `EmailDigestCadence!` (required, one of `AS_IT_HAPPENS`, `DAILY`). When a user's notification email digest goes out (INT-12217). AS_IT_HAPPENS: Five minutes after the first notification it collects. DAILY: Once each morning in the user's own timezone, with everything since the last one.

## Response (data, an example)

```json
{
  "notificationMutation": {
    "setEmailDigestCadence": {
      "id": "<ID>",
      "emailDigestCadence": "AS_IT_HAPPENS"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "setEmailDigestCadence",
    "variables": {
      "cadence": "AS_IT_HAPPENS"
    }
  }'
```
