---
title: "Swap Buttons"
method: POST
path: "/menu-layout/buttons/swap"
tags: ["menu-layout"]
---

# Swap Buttons

`POST /menu-layout/buttons/swap`

## 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/menu-layout/buttons/swap/post.ts> (a function with typed inputs; its response is checked against the schema)

Обменять местами две кнопки (даже из разных строк).

## Request body

- SwapButtonsRequest: Запрос на обмен местами двух кнопок.
  - `button_id_1` string, required: ID первой кнопки
  - `button_id_2` string, required: ID второй кнопки

## Response `200`

Successful Response

- SwapButtonsResponse: Ответ на обмен кнопок.
  - `button_1` object, required
  - `button_2` object, 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/menu-layout/buttons/swap/post.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)
