curl --request POST \
--url http://localhost:3001/api/admin/broadcasts/execute \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"broadcastName": "<string>",
"segmentDefinition": {
"entryNode": {
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
},
"nodes": [
{
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
}
]
},
"messageTemplateDefinition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"subscriptionGroupId": "<string>"
}'
{
"broadcastName": "<string>",
"broadcastId": "<string>"
}
Create and trigger a broadcast.
curl --request POST \
--url http://localhost:3001/api/admin/broadcasts/execute \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"broadcastName": "<string>",
"segmentDefinition": {
"entryNode": {
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
},
"nodes": [
{
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
}
]
},
"messageTemplateDefinition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"subscriptionGroupId": "<string>"
}'
{
"broadcastName": "<string>",
"broadcastId": "<string>"
}
Default Response
The response is of type object
.