Skip to main content
PATCH
/
cabinet
/
admin
/
button-styles
Update Button Styles
curl --request PATCH \
  --url http://localhost:8080/cabinet/admin/button-styles \
  --header 'Content-Type: application/json' \
  --data '
{
  "home": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  },
  "subscription": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  },
  "balance": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  },
  "referral": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  },
  "support": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  },
  "info": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  },
  "admin": {
    "style": "<string>",
    "icon_custom_emoji_id": "<string>",
    "enabled": true,
    "labels": {}
  }
}
'
{
  "home": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  },
  "subscription": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  },
  "balance": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  },
  "referral": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  },
  "support": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  },
  "info": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  },
  "admin": {
    "style": "primary",
    "icon_custom_emoji_id": "",
    "enabled": true,
    "labels": {}
  }
}

Body

application/json

Partial update — only include sections you want to change.

home
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

subscription
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

balance
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

referral
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

support
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

info
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

admin
ButtonSectionUpdate · object

Partial update for a single section (None = keep current).

Response

Successful Response

Full button styles configuration (all 7 sections).

home
ButtonSectionConfig · object

Configuration for a single button section.

subscription
ButtonSectionConfig · object

Configuration for a single button section.

balance
ButtonSectionConfig · object

Configuration for a single button section.

referral
ButtonSectionConfig · object

Configuration for a single button section.

support
ButtonSectionConfig · object

Configuration for a single button section.

info
ButtonSectionConfig · object

Configuration for a single button section.

admin
ButtonSectionConfig · object

Configuration for a single button section.