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.

Response

200
application/json

Rule successfully updated.

The response is of type object.