---
title: "Edit Message"
method: PATCH
path: "/api/chats/{chat_id}/messages/{message_id}"
tags: ["chats"]
---

# Edit Message

`PATCH /api/chats/{chat_id}/messages/{message_id}`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/chats/{chat_id}/messages/{message_id}`
- Auth: none declared

Edit a message's content. Saves original content on first edit.

## Path parameters

- `chat_id` string, uuid, required
- `message_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- EditMessageRequest
  - `content` string, required
  - `result_blocks` ResultBlock[], nullable
    - `kind` 'artifact' | 'create-document' | 'generate-image' | 'edit-document' | 'unknown', required
    - `title` string, required
    - `body` string, required

## Response `200`

Successful Response

- OkResponse
  - `ok` boolean

## Other responses

- `422`: Validation Error

---

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