---
title: "Update Pinned Message"
method: PATCH
path: "/pinned-messages/{message_id}"
tags: ["pinned-messages"]
---

# Update Pinned Message

`PATCH /pinned-messages/{message_id}`

## Request

- The document declares no server URL.
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/pinned-messages/:message_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Обновить закреплённое сообщение.

Можно обновить контент, медиа и настройки показа.
Не делает рассылку — для рассылки используйте POST /pinned-messages/{id}/broadcast.

## Path parameters

- `message_id` integer, required

## Request body

- AppWebapiSchemasPinnedMessagesPinnedMessageUpdateRequest
  - `content` string, nullable
  - `send_before_menu` boolean, nullable
  - `send_on_every_start` boolean, nullable
  - `media` AppWebapiSchemasPinnedMessagesPinnedMessageMedia
    - `type` string, required
    - `file_id` string, required

## Response `200`

Successful Response

- PinnedMessageResponse
  - `id` integer, required
  - `content` string, nullable, required
  - `media_type` string, nullable
  - `media_file_id` string, nullable
  - `send_before_menu` boolean, required
  - `send_on_every_start` boolean, required
  - `is_active` boolean, required
  - `created_by` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `2360876ff9c5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/changes/pinned-messages/:message_id/patch.md)

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
