---
title: "Edit Message"
method: PATCH
path: "/api/messages/edit"
tags: ["Messages"]
---

# Edit Message

`PATCH /api/messages/edit`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/messages/edit`
- Auth: none declared. Required headers: `authorization`

Manually edit a message.

Also auto-collects the edited text as a Voice DNA sample,
learns from the diff between original and edited versions,
and triggers auto Voice DNA reanalysis when enough new samples accumulate.

## Headers

- `x-shop-id` string, nullable: Optional shop ID
- `authorization` string, required: Bearer <token>

## Request body

- EditMessageRequest
  - `message_id` string, required
  - `message` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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