Create a push notification

POST /groups/{groupId}/apps/{appId}/push/notifications

Path parameters

application/json

Body Required

The notification to create.

  • label string Required
  • message string Required
  • topic string Required
  • state string Required

    Values are sent or draft.

Responses

  • 201

    Successfully created.

POST /groups/{groupId}/apps/{appId}/push/notifications
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/push/notifications' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"label":"string","message":"string","topic":"string","state":"sent"}'
Request examples
{
  "label": "string",
  "message": "string",
  "topic": "string",
  "state": "sent"
}