---
title: "Rewrite Message"
method: POST
path: "/v1/conversations/{conversation_id}/rewrite"
tags: ["conversations"]
---

# Rewrite Message

`POST /v1/conversations/{conversation_id}/rewrite`

## Request

- Base URL: `https://api.opero.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.opero.pro/v1/conversations/{conversation_id}/rewrite`
- Auth: none declared

Truncate conversation from a given message and clear checkpointer state,
so the user can re-send an edited message through the normal chat flow.

## Path parameters

- `conversation_id` string, required

## Headers

- `X-User-Id` string, nullable

## Request body

- RewriteRequest
  - `message_id` string, required
  - `org_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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