API

Alterar configurações do aplicativo móvel

POST/api/crm/v2/mobile_apps_settings.updatev2
operationId: mobileAppsSettings.update

Salva as configurações do aplicativo móvel. A imagem de fundo e os logotipos são enviados como multipart.

Autorização

api-token + language + role

Parâmetros de consulta

branch_idintegerobrigatório

Exemplo: 1

Corpo da solicitação multipart/form-data

object

Se auto_change estiver desativado, theme_default é obrigatório; caso contrário, theme_day e theme_night são obrigatórios

apps_noticestringobrigatório

Exemplo: Hello World

templatestringobrigatório

Valores:side_menubottom_menu

mobile_apps_titlestringobrigatório

Exemplo: Pizza

mobile_apps_subtitlestring

Exemplo: Pizza

mobile_apps_icon_namestringobrigatório

Exemplo: icon1

mobile_apps_keywordsstringobrigatório

Exemplo: delivery,online,order,pizza,sushi,rolls,snacks,salads,sets

mobile_apps_short_descriptionstringobrigatório

Exemplo: We are here to make your day better

mobile_apps_full_descriptionstringobrigatório

Exemplo: Use the application to order food: pick your dishes, pay online and get them delivered to your door in a few clicks

update_metadataboolean

Exemplo: true

update_screenshotsboolean

Exemplo: true

ios_force_update_enabledboolean

Exemplo: true

marketer_reviewedboolean

Exemplo: true

auto_changeboolean

Exemplo: true

designer_reviewedboolean

Exemplo: true

special_offers_separate_sectionboolean

Exemplo: true

special_offers_title_in_catalogboolean

Exemplo: true

bottom_menu_icons_and_titles_boldboolean

Somente se template = bottom_menu

Exemplo: true

bottom_menu_titles_showboolean

Somente se template = bottom_menu

Exemplo: true

side_menu_icons_and_titles_boldboolean

Somente se template = side_menu

Exemplo: true

side_menu_background_colorstring

Somente se template = side_menu

Exemplo: C51162

side_menu_icons_and_titles_colorstring

Somente se template = side_menu

Exemplo: C51162

catalog_items_in_two_columnsboolean

Exemplo: true

catalog_horizontal_categoriesboolean

Exemplo: true

catalog_items_animation_on_tap_enabledboolean

Reproduzir a animação das imagens dos produtos somente após serem tocadas

Exemplo: true

special_offers_animation_on_tap_enabledboolean

Reproduzir a animação das imagens das promoções somente após serem tocadas

Exemplo: true

theme_defaultstring (ThemeDefault)

Valores possíveis: light, bright, blue, dark

Valores:lightbrightbluedark

Exemplo: light

theme_daystring

Valores:lightbright

Exemplo: light

theme_nightstring

Valores:bluedark

Exemplo: dark

main_colorstringobrigatório

Exemplo: C51162

catalog_items_image_ratiostringobrigatório

Valores:5:230:191:14:316:9

Exemplo: 5:2

catalog_items_max_rows_descriptionintegerobrigatório

Exemplo: 3

background_image_linkstring

Somente se template = side_menu: URL da imagem selecionada da galeria

Exemplo: https://cdn.foodsoul.test/backgrounds/mobile_apps/0f8bb6781f04a1cb0e231bd06356b86c.jpg

background_imagestring · binary

Somente se template = side_menu; tamanho de 1 a 1536 × de 1 a 2048 pixels

radius_blurinteger

Somente se template = side_menu

Exemplo: 0

logostring · binary

800 × 300 pixels

ios_iconstring · binary

1024 × 1024 pixels

watch_iconstring · binary

1024 × 1024 pixels

android_iconstring · binary

1024 × 1024 pixels

google_play_metadatastring · binary

1024 × 500 pixels

Respostas

OK

object
statusstringobrigatório

Valores:successerror

Exemplo: success

dataobject
descriptionstring

Exemplo: Successfully saved

logostring

Exemplo: https://cdn.foodsoul.test/zones/ru/chains/7160/images/themes/mobile_apps/87c8980728da83d80e4f8a5f7dfa67c4.png?v1748430033

google_play_metadatastring

Exemplo: https://cdn.foodsoul.test/zones/ru/chains/7160/images/meta_data/google_play.png?v1748430936

ios_iconstring

Exemplo: https://cdn.foodsoul.test/zones/ru/chains/7160/images/icons/ios.png?v1748430936

watch_iconstring

Exemplo: https://cdn.foodsoul.test/zones/ru/chains/7160/images/icons/watch.png?v1748430936

android_iconstring

Exemplo: https://cdn.foodsoul.test/zones/ru/chains/7160/images/icons/android.png?v1748430936