Method: deployments.groups.members.batchCreate

  • This API endpoint enables the creation of group members within a specified group, moving devices from other groups if necessary.

  • The request body requires a list of group members to be created, with a current limit of 1000 members per request.

  • Successful responses will include a list of the group members that were successfully created.

  • Authorization requires the https://www.googleapis.com/auth/android_partner_over_the_air OAuth scope.

  • The endpoint utilizes a POST request to https://androidovertheair.googleapis.com/v1/{name=deployments/*/groups/*}/members:batchCreate, using gRPC Transcoding syntax.

Creates group members in a specific group. If any device is in other groups, it will be removed from those groups and added to the group that's specified in the request.

HTTP request

POST https://androidovertheair.googleapis.com/v1/{name=deployments/*/groups/*}/members:batchCreate

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Relative resource name. For example: "deployments/deployment_x/groups/group_g/members"

Request body

The request body contains data with the following structure:

JSON representation
{
  "groupMembers": [
    {
      object (GroupMember)
    }
  ]
}
Fields
groupMembers[]

object (GroupMember)

Required. The list of group members to create. This list is currently limited to no more than 1000 members. If you need to create more than that, please send multiple requests.

Response body

Response message for OverTheAirService.CreateGroupMembers.

If successful, the response body contains data with the following structure:

JSON representation
{
  "groupMembers": [
    {
      object (GroupMember)
    }
  ]
}
Fields
groupMembers[]

object (GroupMember)

The members that were created successfully. This may not match the original input if some members were not able to be created.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/android_partner_over_the_air

For more information, see the OAuth 2.0 Overview.