Create SmartBlockAsk AIpost https://{region}-api-freshrelevance.dotdigital.com/api/{website_id}/smartblocks/Creates a new SmartBlock.Path Paramswebsite_idstringrequiredWebsite ID for the account you are posting data to.Query ParamsformatstringenumrequiredGet data in JSON format.jsonAllowed:jsonBody ParamsBanner_SmartblockCountdown_SmartblockInstagram_SmartblockTwitter_SmartblockProduct_SmartblockCoupon_SmartblockPinterest_SmartblockWebcrop_SmartblockReviews_SmartblockPopover_SmartblockactivebooleanDefaults to trueIndicates whether the Smartblock is active or nottruetruefalsebackground_image_urlurlrequiredImage to display in the Smartblocks backgroundlayoutstringThe layout for this SmartBlocklayout_idstringlength ≤ 256namestringrequiredlength between 1 and 256Unique name for the SmartblockpersonalisedbooleanDefaults to trueEnable personalised Dynamic SmartBlock. Dynamic SmartBlocks can use all available data about an individual, and are cached separately for each person; non-Dynamic SmartBlocks are the same for everyone.truetruefalsetypestringenumrequiredThe type of SmartblockbannerbannerAllowed:banneraction_button_background_colorstringThe HTML color code to use for the action button backgroundaction_button_colorstringThe HTML color code to use for the action button textaction_button_contentstringrequiredText to display on the action (CTA) buttonbackground_colorstringThe HTML color code to use for the banner backgroundbackground_repeatbooleanDefaults to falseEnable if the background image is a texture or other repeating image.truefalsecampaign_codestringlength ≤ 5000Campaign code (utm_campaign) added to the query collection of the URL, when your shopper clicks on this SmartBlockgeo_ipbooleanDefaults to falseAttempt to estimate the users location based on their IP address. Note that if Imported Person Location is selected as the preferred source on the location settings page, this will be prioritised over their IP address.truefalsegeo_full_detailsbooleanDefaults to falseEnable to load all data on locations associated with shown products for use in SmartBlock customization.truefalselocation_set_idstringFind the closest location in this location set. Note: Requires "Geocode by IP" and "Personalised" to be enabled If used in conjunction with radius this method will take precedence location_set_radiusinteger≥ 0Find the closest location within this radius in kmheadline_alignstringenumDefaults to inheritThe text alignment for the headlineleftrightcenterjustifyinheritAllowed:leftrightcenterjustifyinheritheadline_colorstringThe HTML color code to use for the headline textheadline_fontstringWeb font family to use for the headlineheadline_horizontal_offsetstringDefaults to 0Headlines horizontal offsetheadline_sizestringDefaults to 32The size of the headline fontheadline_textstringrequiredText to display for the headline of the Smartblockheadline_vertical_offsetstringDefaults to 0Headlines vertical offset (positive is upwards)heightstringHeight of the bannericon_colourstringThe HTML color code to use for the iconmediumstringlength ≤ 100Tracking medium (utm_medium) added to the query collection of the URL, when your shopper clicks on this SmartBlockmessage_textstringrequiredThe message to displaymessage_alignstringenumDefaults to leftAlignment of main message textinheritleftcenterrightAllowed:inheritleftcenterrightmessage_colorstringThe HTML color code to use for the message textmessage_fontstringWeb font family to use for the message textmessage_sizestringDefaults to 15pxThe font size of the message textmessage_horizontal_offsetstringDefaults to 0Messages horizontal offsetmessage_vertical_offsetstringDefaults to 0Messages vertical offset (positive is upwards)redirect_urlstringrequiredTwitter/X: Redirect to this URL when somebody clicks on the Twitter feed. (Supports personalization). Defaults to the twitter pagesourcestringlength ≤ 100Campaign source (utm_source) added to the query collection of the URL, when your shopper clicks on this SmartBlockstylesstringAdditional CSS stylestagsstringComma seperated SmartBlock tags, so you can find your smartblocks laterweather_daystringenumDefaults to plus1daysDay to show weather forplus0daysplus1daysplus2daysplus3daysplus4daysAllowed:plus0daysplus1daysplus2daysplus3daysplus4dayswidthstringThe width of the bannerResponses 201Details of the created Smartblock 400An error occurredUpdated 7 months ago