Bundle Personalization

Create a new targeting rule

Create a new targeting rule with the specified name.

post/pimcore-studio/api/bundle/personalization/targeting-rules

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /pimcore-studio/api/bundle/personalization/targeting-rules
  • Auth: none declared

Request body

namestring required

Name of the targeting rule

Example request

{
  "name": "My New Targeting Rule"
}

Response

Created targeting rule details as JSON

additionalAttributesobject

AdditionalAttributes

idinteger required

Rule ID

priorityinteger required

Rule priority

conditionsobject[] required

Rule conditions

actionsobject[] required

Rule actions

Example response

{
  "id": 1,
  "priority": 10,
  "settings": {
    "name": "My Targeting Rule",
    "description": "Rule for logged in customers",
    "scope": "hit",
    "active": true
  },
  "conditions": [
    {
      "type": "cmf_customer_is_loggedin",
      "operator": "and",
      "bracketLeft": false,
      "bracketRight": false
    }
  ],
  "actions": [
    {
      "targetGroup": [
        1,
        2,
        3
      ],
      "applyType": "cleanup_and_overwrite",
      "type": "cmf_apply_target_groups_from_segments"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.