API

Zmień ustawienia aplikacji mobilnej

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

Zapisuje ustawienia aplikacji mobilnej. Obraz tła i logotypy są przesyłane jako multipart.

Autoryzacja

api-token + language + role

Parametry zapytania

branch_idintegerwymagane

Przykład: 1

Treść żądania multipart/form-data

object

Jeśli auto_change jest wyłączony, wymagane jest theme_default, w przeciwnym razie — theme_day i theme_night

apps_noticestringwymagane

Przykład: Hello World

templatestringwymagane

Wartości:side_menubottom_menu

mobile_apps_titlestringwymagane

Przykład: Pizza

mobile_apps_subtitlestring

Przykład: Pizza

mobile_apps_icon_namestringwymagane

Przykład: icon1

mobile_apps_keywordsstringwymagane

Przykład: delivery,online,order,pizza,sushi,rolls,snacks,salads,sets

mobile_apps_short_descriptionstringwymagane

Przykład: We are here to make your day better

mobile_apps_full_descriptionstringwymagane

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

update_metadataboolean

Przykład: true

update_screenshotsboolean

Przykład: true

ios_force_update_enabledboolean

Przykład: true

marketer_reviewedboolean

Przykład: true

auto_changeboolean

Przykład: true

designer_reviewedboolean

Przykład: true

special_offers_separate_sectionboolean

Przykład: true

special_offers_title_in_catalogboolean

Przykład: true

bottom_menu_icons_and_titles_boldboolean

Tylko jeśli template = bottom_menu

Przykład: true

bottom_menu_titles_showboolean

Tylko jeśli template = bottom_menu

Przykład: true

side_menu_icons_and_titles_boldboolean

Tylko jeśli template = side_menu

Przykład: true

side_menu_background_colorstring

Tylko jeśli template = side_menu

Przykład: C51162

side_menu_icons_and_titles_colorstring

Tylko jeśli template = side_menu

Przykład: C51162

catalog_items_in_two_columnsboolean

Przykład: true

catalog_horizontal_categoriesboolean

Przykład: true

catalog_items_animation_on_tap_enabledboolean

Odtwarzaj animację obrazów produktów tylko po ich dotknięciu

Przykład: true

special_offers_animation_on_tap_enabledboolean

Odtwarzaj animację obrazów promocji tylko po ich dotknięciu

Przykład: true

theme_defaultstring (ThemeDefault)

Możliwe wartości: light, bright, blue, dark

Wartości:lightbrightbluedark

Przykład: light

theme_daystring

Wartości:lightbright

Przykład: light

theme_nightstring

Wartości:bluedark

Przykład: dark

main_colorstringwymagane

Przykład: C51162

catalog_items_image_ratiostringwymagane

Wartości:5:230:191:14:316:9

Przykład: 5:2

catalog_items_max_rows_descriptionintegerwymagane

Przykład: 3

background_image_linkstring

Tylko jeśli template = side_menu: URL wybranego obrazu z galerii

Przykład: https://cdn.foodsoul.test/backgrounds/mobile_apps/0f8bb6781f04a1cb0e231bd06356b86c.jpg

background_imagestring · binary

Tylko jeśli template = side_menu; rozmiar od 1 do 1536 × od 1 do 2048 pikseli

radius_blurinteger

Tylko jeśli template = side_menu

Przykład: 0

logostring · binary

800 × 300 pikseli

ios_iconstring · binary

1024 × 1024 pikseli

watch_iconstring · binary

1024 × 1024 pikseli

android_iconstring · binary

1024 × 1024 pikseli

google_play_metadatastring · binary

1024 × 500 pikseli

Odpowiedzi

OK

object
statusstringwymagane

Wartości:successerror

Przykład: success

dataobject
descriptionstring

Przykład: Successfully saved

logostring

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

google_play_metadatastring

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

ios_iconstring

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

watch_iconstring

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

android_iconstring

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