curl --request POST \
--url http://localhost:3001/api/admin/broadcasts/execute \
--header 'Authorization: <api-key>' \
--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 'Authorization: <api-key>' \
--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>"
}Show child attributes
Show child attributes
Trait Show child attributes
Trait Mobile push template resource
Show child attributes
MobilePush