Personalization Rules
Create a personalization rule
Creates a rule with its conditions and actions in a single transaction. If the requested name collides with an existing rule, the server auto-appends a suffix. If priority is omitted, the server places the new rule at the end of the list.
post/api/sites/multiscreen/site/{site_name}/personalizations
Request
- Base URLhttps://api.duda.co
- URLhttps://api.duda.co/api/sites/multiscreen/site/{site_name}/personalizations
- AuthHTTP basic
Path parameters
site_namestring required
The site's unique name (its ID), returned when the site is created.
Request body
Example request
{
"action": {
"html": "<b>40% OFF this weekend!</b>",
"background_color": "#FFEB3B",
"duration_seconds": 5
},
"conditions": [
{
"visit_number": 1
}
],
"name": "Welcome popup for new visitors",
"priority": 5,
"show_once": true
}Response
The created rule
Example response
{
"action": {
"html": "<b>40% OFF this weekend!</b>",
"background_color": "#FFEB3B",
"duration_seconds": 5
},
"conditions": [
{
"visit_number": 1
}
],
"id": "12345",
"manageable_via_api": true,
"name": "Welcome popup for new visitors",
"priority": 1,
"show_once": true
}Changes
No recorded changes to this operation across all 1 revision of this API.