---
title: "Move an item to a status and a place in that status's column (after or before another item), optionally setting or clearing a swimlane field (assignee, priority, or any lane field: Labels, Estimate, Start, Due or a custom field such as Parent) or its type."
method: POST
path: "/documents/{id}/items/{itemId}/move"
tags: ["Items"]
---

# Move an item to a status and a place in that status's column (after or before another item), optionally setting or clearing a swimlane field (assignee, priority, or any lane field: Labels, Estimate, Start, Due or a custom field such as Parent) or its type.

`POST /documents/{id}/items/{itemId}/move`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/documents/{id}/items/{itemId}/move`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Owner-Id`

## Path parameters

- `id` string, required
- `itemId` string, required

## Query parameters

- `tabId` string

## Request body

- ItemMoveRequest
  - `after` string, nullable
  - `before` string, nullable
  - `clear` string[]
  - `set` ItemFields
  - `status` string
  - `type` string
  - `undo` true: Marks an undo or redo of an earlier change: lets it restore a status the card's type leaves out.

## Response `200`

Success.

- ItemResponse
  - `item` Item, required
    - `createdAt` number, required
    - `createdBy` ItemPerson, required
      - `color` string, required
      - `id` string, required
      - `name` string, required
    - `fields` ItemFields, required
    - `id` string, required
    - `key` number, required
    - `rank` string, required
    - `rev` number, required
    - `type` string, required
    - `updatedAt` number, required
    - `updatedBy` ItemPerson, required
      - `color` string, required
      - `id` string, required
      - `name` string, required
  - `rev` number, required

## Other responses

- `400`: Error.
- `401`: Error.
- `403`: Error.
- `404`: Error.
- `409`: Error.
- `410`: Error.
- `429`: Rate limited. Back off and retry.

---

[API](https://skmtc.dev/livediagram/apis/livediagram-api.md) · [All operations](https://skmtc.dev/livediagram/apis/livediagram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livediagram/apis/livediagram-api/revisions/f286d27acfd2?raw)
