Creating a RuleComponent
will also update the parent Rule’s updated_at
timestamp.
delegate_descriptor_id
name
delay_next
extension_id
negate
order
rule_order
settings
timeout
POST /properties/:property_id/rule_components
curl https://reactor.adobe.io/properties/:property_id/rule_components \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X POST \
-d \
'
{
"data": {
"attributes": {
"delegate_descriptor_id": "kessel-test::events::click",
"name": "My Example Click Event",
"settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":true}"
},
"relationships": {
"extension": {
"data": {
"id": "EX976b176f32824f1a9452052d1616d68f",
"type": "extensions"
}
},
"rules": {
"data": [
{
"id": "RLc16b6dc829df4078b8763b76668b9b63",
"type": "rules"
}
]
}
},
"type": "rule_components"
}
}'
{
"data": {
"id": "RC806c58a439984e8a9b830983820773bd",
"type": "rule_components",
"attributes": {
"created_at": "2023-04-21T23:05:11.735Z",
"delegate_descriptor_id": "kessel-test::events::click",
"deleted_at": null,
"dirty": true,
"name": "My Example Click Event",
"negate": false,
"order": 0,
"rule_order": 50.0,
"timeout": 2000,
"delay_next": true,
"published": false,
"published_at": null,
"revision_number": 0,
"updated_at": "2023-04-21T23:05:11.735Z",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru",
"settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":true}"
},
"relationships": {
"updated_with_extension_package": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/updated_with_extension_package"
},
"data": {
"id": "EP3e96b796382e49a48d76a626395d8cab",
"type": "extension_packages"
}
},
"updated_with_extension": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/updated_with_extension"
},
"data": {
"id": "EXc8dea25c848c44c896b6cf07455c289f",
"type": "extensions"
}
},
"extension": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/extension"
},
"data": {
"id": "EX976b176f32824f1a9452052d1616d68f",
"type": "extensions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/notes"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/origin"
},
"data": {
"id": "RC806c58a439984e8a9b830983820773bd",
"type": "rule_components"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/properties/PR7f891ef3dc7b4993bcbb5ebe130545cd"
},
"data": {
"id": "PR7f891ef3dc7b4993bcbb5ebe130545cd",
"type": "properties"
}
},
"rules": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/rules"
}
}
},
"links": {
"extension": "https://reactor.adobe.io/extensions/EX976b176f32824f1a9452052d1616d68f",
"origin": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd",
"rules": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd/rules",
"self": "https://reactor.adobe.io/rule_components/RC806c58a439984e8a9b830983820773bd"
},
"meta": {
"latest_revision_number": 0
}
}
}