プッシュ通知を作成する 非推奨

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

プッシュ通知 を作成します。

path パラメータ

application/ JSON

body 必須

作成する通知。

  • ラベル string 必須
  • メッセージ string 必須
  • topic string 必須
  • 状態 string 必須

    値は sent または draft です。

応答

  • 201

    正常に作成されました。

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"}'
リクエスト例
{
  "label": "string",
  "message": "string",
  "topic": "string",
  "state": "sent"
}