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": int,
    "name": "string",
    "send_rate": int
  }
}
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.
send_rate

The dispatch speed limit for push messages (number per second).

The default value is 5000 (maximum).

The minimum acceptable value is 100.
Note. Reducing the speed allows you to decrease your handling service load.

Required

Response format

{
  "group": {
    "id": int,
    "app_id": int,
    "name": "string",
    "send_rate": int
  }
}
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.
send_rate

The dispatch speed limit for push messages (number per second).

Sample request

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

The access token. For more information, see Authorization.