创建推送通知 已弃用

发布 /groups/{groupId}/apps/{appId}/push/notifications

创建推送通知

路径参数

application/json

body 必需

要创建的通知。

  • 标签 字符串 必需
  • message 字符串 必需
  • topic 字符串 必需
  • 字符串 必需

    值为 sentdraft

响应

  • 201

    已成功创建。

POST /groups/{groupId}/apps/{appId}/push/ 通知
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"
}