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
Example request
{
"name": "My New Targeting Rule"
}Response
Created targeting rule details as JSON
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.