---
title: "Изменить сообщение"
method: PUT
path: "/api-v2/chats/{chatId}/messages/{id}"
tags: ["Сообщения чатов"]
---

# Изменить сообщение

`PUT /api-v2/chats/{chatId}/messages/{id}`

## Request

- Base URL: `https://api-docs.yougile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.yougile.com/api-v2/chats/{chatId}/messages/{id}`
- Auth: HTTP bearer

## Path parameters

- `chatId` string, required
- `id` number, required

## Request body

- UpdateChatMessageDto
  - `deleted` boolean: Если true, значит объект удален
  - `label` string: Быстрая ссылка
  - `react` '👍' | '👎' | '👏' | '🙂' | '😀' | '😕' | '🎉' | '❤' | '🚀' | '✔': Список реакций админа

## Response `200`

- ChatIdDto
  - `id` number, required: ID сообщения, также является временем создания

## Other responses

- `404`

---

[API](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0.md) - [All operations](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/yougile/apis/yougile-rest-api-v2-0/revisions/9452cba35716?raw)
