# Update an action item

`PATCH https://evohub.io/api/v1/retro/boards/{boardID}/action-items/{itemID}`

Part of the [Retro API](https://docs.evohub.io/retro.md) reference · operationId `updateRetroActionItem`.

Changes an action item's status, due date or owner; send at least one.

- `status`: `open` or `done`. Marking an item done sets
  `completed_at`; reopening it clears it.
- `due_at`: RFC 3339, or `null` to clear it.
- `assignee_user_id`: a member of the organization, or `null` (or
  `""`) to clear it.

Fields left out are kept. The board must be active.

Requires the `retro:action:write` scope, and `retro:card:write` as
well.

## 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

- `boardID` (string, required, example `brd_3f9a1c7e2b8d4a60`): The board's ID.
- `itemID` (string, required, example `act_5b2e8c1d9f4a7e30`): The action item's ID.

## Request body (required)

Content type: `application/json`

Type: `UpdateActionItemRequest`

- `status` (string, one of `open`, `done`)
- `due_at` (string (date-time) | null): RFC 3339, or `null` to clear it.
- `assignee_user_id` (string | null): An organization member, or `null` or `""` to clear it.

## Responses

### 200 — The action item as it now stands.

Content type: `application/json`

Type: `object`

- `success` (boolean)
- `data` (ActionItemUpdate)
  - `id` (string)
  - `status` (string, one of `open`, `done`)
  - `completed_at` (string (date-time) | null)
  - `due_at` (string (date-time) | null)
  - `updated_at` (string (date-time))
  - `assignee_user_id` (string | null)

### 400 — The body is not JSON or sends none of the fields (`INVALID_BODY`), `status` is not `open` or `done` (`INVALID_STATUS`), `due_at` is not RFC 3339 or `null` (`INVALID_DUE_AT`), `assignee_user_id` is not a string or `null` (`INVALID_ASSIGNEE_USER_ID`), or it is not a member of the organization (`ASSIGNEE_NOT_MEMBER`).

Content type: `application/json`

Type: `Error`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board 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`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board not found`)
  - `request_id` (string)

### 403 — The key lacks the scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board not found`)
  - `request_id` (string)

### 404 — The board is not one the caller can see, or the action item is not on it (`NOT_FOUND`).

Content type: `application/json`

Type: `Error`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board not found`)
  - `request_id` (string)

### 409 — The board is closed and its content cannot change (`BOARD_CLOSED`). Reopen it first.

Content type: `application/json`

Type: `Error`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board 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`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board not found`)
  - `request_id` (string)

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

Content type: `application/json`

Type: `Error`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board not found`)
  - `request_id` (string)

### 503 — The owner's membership could not be checked right now (`MEMBER_CHECK_UNAVAILABLE`). Retry shortly.

Content type: `application/json`

Type: `Error`

- `success` (boolean, value `false`): Sent by Retro itself; refusals before the request reaches Retro (401, 429) carry only `error`.
- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `board not found`)
  - `request_id` (string)

## Example request

```bash
curl -X PATCH 'https://evohub.io/api/v1/retro/boards/brd_3f9a1c7e2b8d4a60/action-items/act_5b2e8c1d9f4a7e30' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
  "status": "done"
}'
```
