API reference
sendMarketingPushNotification
Required permission: WhiteLabelMarketingPushNotificationWrite
sendMarketingPushNotification(
whiteLabelId: ID!
message: String!
filter: MarketingPushNotificationFilter
): MarketingPushNotificationArguments
| Name | Type | Description |
|---|---|---|
whiteLabelId |
ID! |
|
message |
String! |
|
filter |
MarketingPushNotificationFilter |
Returns
Example
mutation SendMarketingPushNotification($whiteLabelId: ID!, $message: String!) {
sendMarketingPushNotification(whiteLabelId: $whiteLabelId, message: $message) {
id
createdAt
deviceCount
message
userCount
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { sendMarketingPushNotification(...) { __typename } }"}'