Skip to main content
PUT
/
menu-layout
Update Menu Layout
curl --request PUT \
  --url http://localhost:8080/menu-layout \
  --header 'Content-Type: application/json' \
  --data '
{
  "rows": [
    {
      "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
    }
  ],
  "buttons": {}
}
'
{
  "version": 123,
  "rows": [
    {
      "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
    }
  ],
  "buttons": {},
  "is_enabled": true,
  "updated_at": "2023-11-07T05:31:56Z"
}

Body

application/json

Запрос на обновление конфигурации меню.

rows
MenuRowConfig · object[] | null

Новая конфигурация строк

buttons
Buttons · object

Новая конфигурация кнопок

Response

Successful Response

Ответ с конфигурацией меню.

version
integer
required
rows
MenuRowConfig · object[]
required
buttons
Buttons · object
required
is_enabled
boolean
required

Включен ли конструктор меню

updated_at
string<date-time> | null