curl --request POST \
--url https://api.novu.co/v1/events/trigger/broadcast \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"payload": {
"comment_id": "string",
"post": {
"text": "string"
}
},
"overrides": {
"fcm": {
"data": {
"key": "value"
}
}
},
"transactionId": "<string>",
"actor": "<string>",
"tenant": "<string>"
}'
{
"data": {
"acknowledged": true,
"status": "error",
"error": [
"<string>"
],
"transactionId": "<string>"
}
}
Trigger a broadcast event to all existing subscribers, could be used to send announcements, etc. In the future could be used to trigger events to a subset of subscribers based on defined filters.
curl --request POST \
--url https://api.novu.co/v1/events/trigger/broadcast \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"payload": {
"comment_id": "string",
"post": {
"text": "string"
}
},
"overrides": {
"fcm": {
"data": {
"key": "value"
}
}
},
"transactionId": "<string>",
"actor": "<string>",
"tenant": "<string>"
}'
{
"data": {
"acknowledged": true,
"status": "error",
"error": [
"<string>"
],
"transactionId": "<string>"
}
}
Ok
The response is of type object
.
Was this page helpful?