# Zilfu — Email preferences

1 operation. Schemas referenced below are documented at https://zilfu.app/docs/api/schemas.md.

## Servers

- `https://zilfu.app/api`

## Operations

### Update the user's per-type email preferences

- **Method:** `PUT`
- **Path:** `/settings/email-preferences`
- **Tags:** EmailPreference

#### Request Body

##### Content-Type: application/json

- **`checkins` (required)**

  `boolean`

- **`digest` (required)**

  `boolean`

- **`news` (required)**

  `boolean`

**Example:**

```json
{
  "digest": true,
  "checkins": true,
  "news": true
}
```

#### Responses

##### Status: 200

###### Content-Type: application/json

**Example:**

```json
null
```

##### Status: 401 Unauthenticated

###### Content-Type: application/json

- **`message` (required)**

  `string` — Error overview.

**Example:**

```json
{
  "message": ""
}
```

##### Status: 422 Validation error

###### Content-Type: application/json

- **`errors` (required)**

  `object` — A detailed description of each field that failed validation.

- **`message` (required)**

  `string` — Errors overview.

**Example:**

```json
{
  "message": "",
  "errors": {
    "additionalProperty": [
      ""
    ]
  }
}
```
