API

Změnit nastavení mobilní aplikace

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

Ukládá nastavení mobilní aplikace. Pozadí a loga se nahrávají jako multipart.

Autorizace

api-token + language + role

Parametry dotazu

branch_idintegerpovinné

Příklad: 1

Tělo požadavku multipart/form-data

object

Pokud je auto_change vypnutý, je povinný theme_default, jinak theme_day a theme_night

apps_noticestringpovinné

Příklad: Hello World

templatestringpovinné

Hodnoty:side_menubottom_menu

mobile_apps_titlestringpovinné

Příklad: Pizza

mobile_apps_subtitlestring

Příklad: Pizza

mobile_apps_icon_namestringpovinné

Příklad: icon1

mobile_apps_keywordsstringpovinné

Příklad: delivery,online,order,pizza,sushi,rolls,snacks,salads,sets

mobile_apps_short_descriptionstringpovinné

Příklad: We are here to make your day better

mobile_apps_full_descriptionstringpovinné

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

update_metadataboolean

Příklad: true

update_screenshotsboolean

Příklad: true

ios_force_update_enabledboolean

Příklad: true

marketer_reviewedboolean

Příklad: true

auto_changeboolean

Příklad: true

designer_reviewedboolean

Příklad: true

special_offers_separate_sectionboolean

Příklad: true

special_offers_title_in_catalogboolean

Příklad: true

bottom_menu_icons_and_titles_boldboolean

Pouze pokud template = bottom_menu

Příklad: true

bottom_menu_titles_showboolean

Pouze pokud template = bottom_menu

Příklad: true

side_menu_icons_and_titles_boldboolean

Pouze pokud template = side_menu

Příklad: true

side_menu_background_colorstring

Pouze pokud template = side_menu

Příklad: C51162

side_menu_icons_and_titles_colorstring

Pouze pokud template = side_menu

Příklad: C51162

catalog_items_in_two_columnsboolean

Příklad: true

catalog_horizontal_categoriesboolean

Příklad: true

catalog_items_animation_on_tap_enabledboolean

Přehrávat animaci obrázků produktů pouze po jejich klepnutí

Příklad: true

special_offers_animation_on_tap_enabledboolean

Přehrávat animaci obrázků speciálních nabídek pouze po jejich klepnutí

Příklad: true

theme_defaultstring (ThemeDefault)

Možné hodnoty: light, bright, blue, dark

Hodnoty:lightbrightbluedark

Příklad: light

theme_daystring

Hodnoty:lightbright

Příklad: light

theme_nightstring

Hodnoty:bluedark

Příklad: dark

main_colorstringpovinné

Příklad: C51162

catalog_items_image_ratiostringpovinné

Hodnoty:5:230:191:14:316:9

Příklad: 5:2

catalog_items_max_rows_descriptionintegerpovinné

Příklad: 3

background_image_linkstring

Pouze pokud template = side_menu: URL vybraného obrázku z galerie

Příklad: https://cdn.foodsoul.test/backgrounds/mobile_apps/0f8bb6781f04a1cb0e231bd06356b86c.jpg

background_imagestring · binary

Pouze pokud template = side_menu; velikost od 1 do 1536 × od 1 do 2048 pixelů

radius_blurinteger

Pouze pokud template = side_menu

Příklad: 0

logostring · binary

800 × 300 pixelů

ios_iconstring · binary

1024 × 1024 pixelů

watch_iconstring · binary

1024 × 1024 pixelů

android_iconstring · binary

1024 × 1024 pixelů

google_play_metadatastring · binary

1024 × 500 pixelů

Odpovědi

OK

object
statusstringpovinné

Hodnoty:successerror

Příklad: success

dataobject
descriptionstring

Příklad: Successfully saved

logostring

Příklad: https://cdn.foodsoul.test/zones/ru/chains/7160/images/themes/mobile_apps/87c8980728da83d80e4f8a5f7dfa67c4.png?v1748430033

google_play_metadatastring

Příklad: https://cdn.foodsoul.test/zones/ru/chains/7160/images/meta_data/google_play.png?v1748430936

ios_iconstring

Příklad: https://cdn.foodsoul.test/zones/ru/chains/7160/images/icons/ios.png?v1748430936

watch_iconstring

Příklad: https://cdn.foodsoul.test/zones/ru/chains/7160/images/icons/watch.png?v1748430936

android_iconstring

Příklad: https://cdn.foodsoul.test/zones/ru/chains/7160/images/icons/android.png?v1748430936