본문으로 건너뛰기

NotificationAction

Shared request and response schema. Request: Notification action accepted when configuring a reaction, including its recipients, message, and channel. Response: Notification action returned for a reaction, including its recipients, message, and channel.

channelChannel (string)필수

Possible values: [pipeline, batch, access, system, agent, infra]

typeType (string)필수
collection object
하나 이상(anyOf)
string
resource object
하나 이상(anyOf)
string
messageMessage (string)필수
payload object
property name*any
recipients object필수

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.

usersstring[]

User identifiers that should receive the notification directly.

groupsstring[]

Group identifiers whose members should receive the notification.

collection object

Collection whose readers should receive the notification.

하나 이상(anyOf)
string
broadcastBroadcast (boolean)

Whether every active user should receive the notification.

기본값: false
on_failure object

Compensating action, run when this action raises. 1-depth only.

하나 이상(anyOf)
kind필수

Possible values: [function, notification, ontology]

on_failure object

Compensating action, run when this action raises. 1-depth only.

하나 이상(anyOf)
kind

Possible values: [function, notification, ontology]

languageLanguage (string)필수
상수 값: python
codeCode (string)필수

Python function body executed by this action.

params object

Bound parameters passed to the function

property name*any

Bound parameters passed to the function

kindKind (string)필수
상수 값: notification
NotificationAction
{
"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"
}