---
title: "Edit a message"
method: POST
path: "/v1/chat/updateMessage/{instance}"
tags: ["Chat"]
---

# Edit a message

`POST /v1/chat/updateMessage/{instance}`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/v1/chat/updateMessage/{instance}`
- Auth: API key in header `apikey`

Edits a previously sent text message, mirroring Evolution API's POST /chat/updateMessage

## Path parameters

- `instance` string, required

## Request body

- DtoUpdateMessageRequest
  - `key` DtoUpdateMessageKey, required
    - `fromMe` boolean, required
    - `id` string, required
    - `participant` string
    - `remoteJid` string, required
  - `number` string, required
  - `text` string, required

## Response `200`

OK

- DtoUpdateMessageResponse
  - `instanceId` string
  - `key` DtoMessageResponseKey
    - `fromMe` boolean
    - `id` string
    - `remoteJid` string
  - `message` DtoSendTextResponseMessage
    - `conversation` string
  - `messageTimestamp` integer
  - `messageType` string
  - `status` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-08-20** `d0a6b1547e80`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/changes/v1/chat/updateMessage/:instance/post.md)

---

[API](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api.md) - [All operations](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/revisions/b425ec589eb0?raw)
