API

Alterar script de promoção

POST/api/crm/v2/mobile_apps_promoter_script.updatev2
operationId: mobileAppsPromoterScript.update

Altera o script de promoção. Com reset_screenshot=true, a captura de tela do aplicativo será recriada.

Autorização

api-token + language + role

Parâmetros de consulta

chain_idintegerobrigatório

Exemplo: 7160

Corpo da solicitação application/json

object
main_frame_text_headerstring

Exemplo: We have a mobile application

main_frame_text_bodystring

Exemplo: Install it and get a bonus

main_frame_background_imagestringobrigatório

Exemplo: https://cdn.foodsoul.test/backgrounds/promoter_script/1312e71798302424c25c538639989665.jpg

main_frame_background_colorstringobrigatório

Exemplo: 7E57C2

main_frame_background_dotsboolean

Exemplo: true

main_frame_colors_buttonsstringobrigatório

Exemplo: 0D47A1

main_frame_colors_textstringobrigatório

Exemplo: FFFFFF

main_frame_colors_iphonestring (MainFrameColorsIphone) obrigatório

Valores:space_graysilvergold

Exemplo: gold

reset_screenshotboolean

Criar uma nova captura de tela do aplicativo

Exemplo: true

button_positionstring (ButtonPosition) obrigatório

Valores:top_righttop_leftbottom_rightbottom_left

Exemplo: top_right

button_orientationstring (ButtonOrientation) obrigatório

Valores:horizontallyvertically

Exemplo: horizontally

button_text_first_linestring

Exemplo: Download our

button_text_second_linestring

Exemplo: application

button_offset_xintegerobrigatório

Exemplo: 24

button_offset_yintegerobrigatório

Exemplo: 24

button_colors_backgroundstringobrigatório

Exemplo: 651FFF

button_colors_textstringobrigatório

Exemplo: FFFFFF

small_sizeboolean

Exemplo: true

Respostas

OK

object
statusstringobrigatório

Valores:successerror

Exemplo: success

dataobject