Skip to main content
POST
/
menu-layout
/
rows
Add Row
curl --request POST \
  --url http://localhost:8080/menu-layout/rows \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "buttons": [
    "<string>"
  ],
  "conditions": {
    "has_active_subscription": true,
    "subscription_is_active": true,
    "has_traffic_limit": true,
    "is_admin": true,
    "is_moderator": true,
    "referral_enabled": true,
    "contests_visible": true,
    "support_enabled": true,
    "language_selection_enabled": true,
    "happ_enabled": true,
    "simple_subscription_enabled": true,
    "show_trial": true,
    "show_buy": true,
    "has_saved_cart": true,
    "min_balance_kopeks": 1,
    "max_balance_kopeks": 1,
    "min_registration_days": 1,
    "max_registration_days": 1,
    "min_referrals": 1,
    "has_referrals": true,
    "promo_group_ids": [
      "<string>"
    ],
    "exclude_promo_group_ids": [
      "<string>"
    ],
    "has_subscription_days_left": 1,
    "max_subscription_days_left": 1,
    "is_trial_user": true,
    "has_autopay": true
  },
  "max_per_row": 2,
  "position": 1
}
'
{
  "id": "<string>",
  "buttons": [
    "<string>"
  ],
  "conditions": {
    "has_active_subscription": true,
    "subscription_is_active": true,
    "has_traffic_limit": true,
    "is_admin": true,
    "is_moderator": true,
    "referral_enabled": true,
    "contests_visible": true,
    "support_enabled": true,
    "language_selection_enabled": true,
    "happ_enabled": true,
    "simple_subscription_enabled": true,
    "show_trial": true,
    "show_buy": true,
    "has_saved_cart": true,
    "min_balance_kopeks": 1,
    "max_balance_kopeks": 1,
    "min_registration_days": 1,
    "max_registration_days": 1,
    "min_referrals": 1,
    "has_referrals": true,
    "promo_group_ids": [
      "<string>"
    ],
    "exclude_promo_group_ids": [
      "<string>"
    ],
    "has_subscription_days_left": 1,
    "max_subscription_days_left": 1,
    "is_trial_user": true,
    "has_autopay": true
  },
  "max_per_row": 2
}

Body

application/json

Запрос на добавление новой строки.

id
string
required

ID новой строки

Required string length: 1 - 50
buttons
string[]
required

Список ID кнопок

conditions
ButtonConditions · object

Условия показа

max_per_row
integer
default:2

Макс. кнопок в строке

Required range: 1 <= x <= 4
position
integer | null

Позиция вставки (по умолчанию - в конец)

Required range: x >= 0

Response

Successful Response

Конфигурация строки меню.

id
string
required

Уникальный ID строки

Required string length: 1 - 50
buttons
string[]
required

Список ID кнопок в строке

conditions
ButtonConditions · object

Условия показа всей строки

max_per_row
integer
default:2

Максимум кнопок в строке

Required range: 1 <= x <= 4