---
title: "Edit an item's text"
method: PATCH
path: "/api/rooms/{code}/items/{uuid}"
tags: ["items"]
---

# Edit an item's text

`PATCH /api/rooms/{code}/items/{uuid}`

## Request

- Base URL: `https://useclippy.cc`
- URL: `https://useclippy.cc/api/rooms/{code}/items/{uuid}`
- Auth: none declared

## Path parameters

- `code` string, required
- `uuid` string, uuid, required

## Headers

- `X-Room-Password` string
- `X-Owner-Token` string

## Request body

- object
  - `text` string, nullable

## Response `200`

Updated

- object
  - `item` Item
    - `id` string, uuid
    - `text` string, nullable
    - `device` string, nullable
    - `createdAt` integer: Milliseconds since epoch.
    - `updatedAt` integer, nullable
    - `edited` boolean
    - `hasImage` boolean
    - `imageUrl` string, uri: Present when hasImage is true.
    - `imageMime` string: Present when hasImage is true.
    - `imageSize` integer: Bytes. Present when hasImage is true.

## Other responses

- `404`: Item not found
- `422`: Validation failed

---

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