curl --request POST \
--url https://api.example.com/menu-layout/buttons/swap \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"button_id_1": "<string>",
"button_id_2": "<string>"
}
'{
"button_1": {},
"button_2": {}
}Обменять местами две кнопки (даже из разных строк).
curl --request POST \
--url https://api.example.com/menu-layout/buttons/swap \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"button_id_1": "<string>",
"button_id_2": "<string>"
}
'{
"button_1": {},
"button_2": {}
}