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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The site's unique name (its ID), returned when the site is created.

string
required

Rule id

Body Params

Create or update payload for a personalization rule. On PATCH, any field set to null is preserved; conditions/actions are replace-on-provide. PATCH-ing conditions or actions on a rule whose existing conditions/actions are not manageable via this API returns 409.

action
conditions
array

Conditions for the rule. On PATCH, null preserves existing; a list replaces them entirely.

conditions
string
length between 0 and 1000

Optional human-readable description.

string
length between 0 and 200

Rule name. Required on create; if it collides with an existing rule on the site, the server appends a suffix.

int32

Optional priority. If omitted on create, the server assigns max(priority)+1.

boolean

If true, actions fire at most once per visitor session.

string
enum

Lifecycle status. DRAFT = saved but inactive, ACTIVE = running on the site, PAUSED = temporarily disabled.

Allowed:
Responses

400

Payload validation failed

404

Rule or site not found

405

Method Not Allowed

409

Rule contains UNSUPPORTED conditions or actions; edit it in the editor UI. Error code: RULE_CONTAINS_UNMANAGED_ACTIONS

500

Internal Server Error

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json