# sendMarketingPushNotification

> Required permission: WhiteLabelMarketingPushNotificationWrite

Source: https://docs.gastrogate.io/docs/api/mutations/sendMarketingPushNotification

```graphql
sendMarketingPushNotification(
  whiteLabelId: ID!
  message: String!
  filter: MarketingPushNotificationFilter
): MarketingPushNotification
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `whiteLabelId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `message` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md)! |  |
| `filter` | [`MarketingPushNotificationFilter`](https://docs.gastrogate.io/docs/api/types/MarketingPushNotificationFilter.md) |  |

## Returns

[`MarketingPushNotification`](https://docs.gastrogate.io/docs/api/types/MarketingPushNotification.md)

## Example

```graphql
mutation SendMarketingPushNotification($whiteLabelId: ID!, $message: String!) {
  sendMarketingPushNotification(whiteLabelId: $whiteLabelId, message: $message) {
    id
    createdAt
    deviceCount
    message
    userCount
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { sendMarketingPushNotification(...) { __typename } }"}'
```
