ReactionCreate
Payload used to create Reaction. Required fields are name, collection_id, condition, actions.
alias object
- string
- null
Parent collection ID (required)
Possible values: non-empty
folder_id object
- string
- null
tags object
- string[]
- null
description object
- string
- null
condition objectrequired
When the reaction fires (required)
When the reaction fires (required)
Possible values: [function, ontology, parent, time]
- function
- ontology
- parent
- time
pythonPython function body executed by this action.
Cron expression for evaluation cadence
params object
Bound parameters passed to the function
Bound parameters passed to the function
EntityType.id or RelationType.id
Possible values: [added, modified, removed]
filter object
Optional predicate evaluated against changed row values.
- object
- null
Parent Reaction id
Cron expression, e.g. '0 9 * * 1'
actions object[]required
Sequential action chain (required)
- OntologyAction
- FunctionAction
- NotificationAction
on_failure object
Compensating action, run when this action raises. 1-depth only.
- object
- null
Possible values: [function, notification, ontology]
- function
- notification
- ontology
on_failure object
Compensating action, run when this action raises. 1-depth only.
- object
- null
Possible values: [function, notification, ontology]
- function
- notification
- ontology
Possible values: [pipeline, batch, access, system, agent, infra]
collection object
- string
- null
resource object
- string
- null
payload object
recipients objectrequired
Notification recipient predicates. Users, groups, collection readers, and broadcast recipients are combined and deduplicated. A request with no predicates is rejected with 422; a valid predicate that resolves to no users creates zero deliveries.
User identifiers that should receive the notification directly.
Group identifiers whose members should receive the notification.
collection object
Collection whose readers should receive the notification.
- string
- null
Whether every active user should receive the notification.
falseon_failure object
Compensating action, run when this action raises. 1-depth only.
- object
- null
Possible values: [function, notification, ontology]
- function
- notification
- ontology
pythonPython function body executed by this action.
params object
Bound parameters passed to the function
Bound parameters passed to the function
Possible values: [pipeline, batch, access, system, agent, infra]
collection object
- string
- null
resource object
- string
- null
payload object
recipients objectrequired
Notification recipient predicates. Users, groups, collection readers, and broadcast recipients are combined and deduplicated. A request with no predicates is rejected with 422; a valid predicate that resolves to no users creates zero deliveries.
User identifiers that should receive the notification directly.
Group identifiers whose members should receive the notification.
collection object
Collection whose readers should receive the notification.
- string
- null
Whether every active user should receive the notification.
falseon_failure object
Compensating action, run when this action raises. 1-depth only.
- object
- null
Possible values: [function, notification, ontology]
- function
- notification
- ontology
on_failure object
Compensating action, run when this action raises. 1-depth only.
- object
- null
Possible values: [function, notification, ontology]
- function
- notification
- ontology
pythonPython function body executed by this action.
params object
Bound parameters passed to the function
Bound parameters passed to the function
ontologyEntityType.id or RelationType.id
Possible values: [upsert, delete]
values objectrequired
Row values for upsert / delete key
Row values for upsert / delete key
{
"name": "string",
"alias": "string",
"collection_id": "string",
"folder_id": "string",
"tags": [
"string"
],
"description": "string",
"condition": {
"kind": "ontology",
"target_id": "string",
"op": "added",
"filter": {}
},
"actions": [
{
"kind": "ontology",
"target_id": "string",
"op": "upsert",
"values": {}
},
{
"on_failure": {
"kind": "ontology",
"target_id": "string",
"op": "upsert",
"values": {}
},
"kind": "function",
"language": "python",
"code": "string",
"params": {}
},
{
"channel": "pipeline",
"type": "string",
"collection": "string",
"resource": "string",
"message": "string",
"payload": {},
"recipients": {
"users": [
"string"
],
"groups": [
"string"
],
"collection": "string",
"broadcast": false
},
"on_failure": {
"kind": "ontology",
"target_id": "string",
"op": "upsert",
"values": {}
},
"kind": "notification"
}
]
}