Method: deployments.groups.members.batchCreate
Stay organized with collections
Save and categorize content based on your preferences.
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 member s 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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThis API endpoint enables the creation of group members within a specified group, moving devices from other groups if necessary.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a list of group members to be created, with a current limit of 1000 members per request.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will include a list of the group members that were successfully created.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/android_partner_over_the_air\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint utilizes a \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003ehttps://androidovertheair.googleapis.com/v1/{name=deployments/*/groups/*}/members:batchCreate\u003c/code\u003e, using gRPC Transcoding syntax.\u003c/p\u003e\n"]]],["This outlines how to create members within a specific group using a POST request to `https://androidovertheair.googleapis.com/v1/{name=deployments/*/groups/*}/members:batchCreate`. The request requires a path parameter `name` specifying the group. The request body must contain a JSON array of `groupMembers` objects (up to 1000 per request). Upon success, the response body returns a JSON array of successfully created `groupMembers`, which may differ from the input. Authorization requires the `android_partner_over_the_air` OAuth scope.\n"],null,[]]