Creating a group

Creates a group for sending push messages to the specified application.

POST /push/v1/management/groups

Request format

https://push.api.appmetrica.yandex.net/push/v1/management/groups

Request body

{
  "group": {
    "app_id": 0,
    "name": "string"
  }
}
group
The group for sending push messages.
app_id *

App ID to create the group for. Required parameter.

name *

The unique name of the group. Required parameter.

Required

Response format

{
  "group": {
    "id": 0,
    "app_id": 0,
    "name": "string"
  }
}
group
The group for sending push messages.
id

The ID of the created group.

app_id
ID of the app that the group was created for.
name
The name of the created group.

Sample request

curl -X POST \
  'https://push.api.appmetrica.yandex.net/push/v1/management/groups' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: OAuth 05dd3dd84ff948fdae2bc4fb91f13e22bb1f289ceef0037'
  -d ' {"group":{"app_id":XXXXXX,"name":"group-name"}}'

The access token. For more information, see Authorization.