---
title: "POST /api/{session}/edit-message"
method: POST
path: "/api/{session}/edit-message"
tags: ["Messages"]
---

# POST /api/{session}/edit-message

`POST /api/{session}/edit-message`

## Path parameters

- `session` string, required

## Request body

- object
  - `id` string
  - `newText` string
  - `options` object

## Response `default`

## Changes

- **2023-11-15** `e1e523968115` — 1 info
  - removed the non-success response with the status `400`
- **2023-11-15** `7bb92451afa0` — 1 info
  - endpoint added
- **2022-07-21** `5384d2ef4ae9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/changes/api/:session/edit-message/post.md)

---

[API](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest.md) · [All operations](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wppconnect-team/wppconnect-api-rest/revisions/853aaca8a2fe/schema)
