Updating a RuleComponent
will also update the parent Rule’s updated_at
timestamp.
delay_next
delegate_descriptor_id
extension_id
name
negate
order
rule_order
settings
timeout
PATCH /rule_components/:id
curl https://reactor.adobe.io/rule_components/:id \
-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 PATCH \
-d \
'
{
"data": {
"attributes": {
"order": 1,
"settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":false}"
},
"type": "rule_components",
"id": "RC64092843a1d94ad3958f603bc69242ea"
}
}'
{
"data": {
"id": "RC64092843a1d94ad3958f603bc69242ea",
"type": "rule_components",
"attributes": {
"created_at": "2023-04-21T23:05:29.804Z",
"delegate_descriptor_id": "kessel-test::events::click",
"deleted_at": null,
"dirty": true,
"name": "My Example Click Event",
"negate": false,
"order": 1,
"rule_order": 50.0,
"timeout": 2000,
"delay_next": true,
"published": false,
"published_at": null,
"revision_number": 0,
"updated_at": "2023-04-21T23:05:29.895Z",
"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\":false}"
},
"relationships": {
"updated_with_extension_package": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/updated_with_extension_package"
},
"data": {
"id": "EP3e96b796382e49a48d76a626395d8cab",
"type": "extension_packages"
}
},
"updated_with_extension": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/updated_with_extension"
},
"data": {
"id": "EX3fe6bb6b5a6741a6b2c104043cc9bc6b",
"type": "extensions"
}
},
"extension": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/extension"
},
"data": {
"id": "EX210b6745a3504f9e9e645f7e217926b4",
"type": "extensions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/notes"
}
},
"origin": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/origin"
},
"data": {
"id": "RC64092843a1d94ad3958f603bc69242ea",
"type": "rule_components"
}
},
"property": {
"links": {
"related": "https://reactor.adobe.io/properties/PR90368dd7c53748e8806922bcf599aad6"
},
"data": {
"id": "PR90368dd7c53748e8806922bcf599aad6",
"type": "properties"
}
},
"rules": {
"links": {
"related": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/rules"
}
}
},
"links": {
"extension": "https://reactor.adobe.io/extensions/EX210b6745a3504f9e9e645f7e217926b4",
"origin": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea",
"rules": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea/rules",
"self": "https://reactor.adobe.io/rule_components/RC64092843a1d94ad3958f603bc69242ea"
},
"meta": {
"latest_revision_number": 0
}
}
}