POST
/
api
/
admin
/
broadcasts
/
execute
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>"
}

Body

application/json
workspaceId
string
required
broadcastName
string
required
segmentDefinition
object
required
messageTemplateDefinition
object
required

Mobile push template resource

subscriptionGroupId
string

Response

200 - application/json
Default Response
broadcastName
string
required
broadcastId
string
required