---
title: "Update Main Menu Button Endpoint"
method: PATCH
path: "/main-menu/buttons/{button_id}"
tags: ["main-menu"]
---

# Update Main Menu Button Endpoint

`PATCH /main-menu/buttons/{button_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/main-menu/buttons/:button_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Обновление кнопки главного меню.

## Path parameters

- `button_id` integer, required

## Request body

- MainMenuButtonUpdateRequest
  - `text` string, nullable
  - `action_type` 'url' | 'mini_app'
  - `action_value` string, nullable
  - `visibility` 'all' | 'admins' | 'subscribers'
  - `is_active` boolean, nullable
  - `display_order` integer, nullable

## Response `200`

Successful Response

- MainMenuButtonResponse
  - `id` integer, required
  - `text` string, required
  - `action_type` 'url' | 'mini_app', required
  - `action_value` string, required
  - `visibility` 'all' | 'admins' | 'subscribers', required
  - `is_active` boolean, required
  - `display_order` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## 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/main-menu/buttons/:button_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)
