POST
/
experience-manager
/
rules
Update or create a rule
curl --request POST \
  --url https://{FUSION HOST}/api/experience-manager/rules \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "campaign_id": "<string>",
  "createdOn": "2023-11-07T05:31:56Z",
  "deployed": true,
  "description": "<string>",
  "effective_range": [
    "<string>"
  ],
  "filters": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "groups": "<string>",
  "id": "<string>",
  "matching": "keywords",
  "name": "<string>",
  "priority": 123,
  "query_profile_id_ss": [
    "<string>"
  ],
  "response_values": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "review": "approved",
  "search_terms": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ],
  "target_segments": [
    "<string>"
  ],
  "updatedOn": "2023-11-07T05:31:56Z",
  "variant_id": "<string>"
}'
{}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

commitWithin
string

Time in milliseconds within which the update should be committed.

context
string
required

Application context for the rule request.

staging
boolean
required

Indicates whether the rule should be applied in a staging environment.

version
integer

Optional version number of the rule update.

Body

application/json

Details of the rule to be created or updated.

Represents a request to create or update a rule in the Experience Manager.

campaign_id
string

Unique identifier of the campaign associated with this rule.

createdOn
string<date-time>

Timestamp indicating when the rule was created.

deployed
boolean

Indicates whether the rule is currently deployed.

description
string

A brief description of the rule.

effective_range
string[]

Defines the time range during which the rule is active.

filters
object[]

A list of filter conditions for applying the rule.

groups
string

User groups associated with this rule.

id
string

Unique identifier for the rule.

matching
enum<string>

Defines the matching criteria for the rule.

Available options:
keywords,
phrase,
text
name
string

The name of the rule.

priority
integer

Defines the priority level of the rule.

query_profile_id_ss
string[]

A list of query profile IDs associated with this rule.

response_values
object[]

A list of response values applied by the rule.

review
enum<string>

The review status of the rule.

Available options:
approved,
auto,
denied,
pending,
supplied
search_terms
string[]

A list of search terms associated with the rule.

tags
string[]

A list of tags associated with the rule.

target_segments
string[]

A list of unique target segments for the rule.

updatedOn
string<date-time>

Timestamp indicating when the rule was last updated.

variant_id
string

Unique identifier for the variant of this rule.

Response

Rule successfully updated.

The response is of type object.