# Set a list's review and done flags

`PUT https://evohub.io/api/v1/board/lists/{listID}/flags`

Part of the [Board API](https://docs.evohub.io/board.md) reference · operationId `setListFlags`.

Marks the list as the board's review list, its done list, or neither.
A list cannot be both. Cards that sit in a done list are archived
after the board's `auto_archive_days`.

Changing which lists take part in review is how the board is run, so
it needs `board:board:write` as well as the scope below; without it
the answer is **403** `FORBIDDEN`.

Requires the `board:review:write` scope.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

- `bearerKey`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `headerKey`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Path parameters

- `listID` (string, required, example `lst_2b3c4d5e6f7a48b9c0d1e2f3a4b5c6d7`): The list's ID.

## Request body (required)

Content type: `application/json`

Type: `ListFlags`

- `is_review_list` (boolean): The board's review list.
- `is_done_list` (boolean): The board's done list.

## Responses

### 200 — The list's flags.

Content type: `application/json`

Type: `object`

- `data` (object)
  - `flags` (ListFlags)
    - `is_review_list` (boolean): The board's review list.
    - `is_done_list` (boolean): The board's done list.

### 400 — The body is not JSON for this endpoint (`INVALID_BODY`), or both flags are true (`VALIDATION_ERROR`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 403 — The key lacks `board:review:write` or `board:board:write` (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 404 — It does not exist, or it is on a board the caller cannot see (`NOT_FOUND`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 429 — Too many requests (`RATE_LIMITED`). Wait for `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait before retrying.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 500 — Something went wrong on EvoHub's side (`INTERNAL_ERROR`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

## Example request

```bash
curl -X PUT 'https://evohub.io/api/v1/board/lists/lst_2b3c4d5e6f7a48b9c0d1e2f3a4b5c6d7/flags' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
  "is_done_list": false,
  "is_review_list": true
}'
```
