Personalization Rules
Update a personalization rule
Updates the rule. Fields set to null are preserved. Conditions and actions are replace-on-provide: send null to leave them untouched, or send a list to replace them entirely. Updating conditions/actions on a rule whose existing payload contains UNSUPPORTED entries returns 409 — edit those rules in the editor UI instead.
patch/api/sites/multiscreen/site/{site_name}/personalizations/{id}
Request
- Base URLhttps://api.duda.co
- URLhttps://api.duda.co/api/sites/multiscreen/site/{site_name}/personalizations/{id}
- AuthHTTP basic
Path parameters
site_namestring required
The site's unique name (its ID), returned when the site is created.
idstring required
Rule id
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 updated 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.