AI-generated Key Takeaways
-
The BatchCreateAccessBindings method creates multiple access bindings to an account or property and is transactional, meaning all creations succeed or none do.
-
The HTTP request uses a POST method to the specified URL, utilizing gRPC Transcoding syntax.
-
The request requires a
parent
path parameter specifying the account or property that owns the access bindings. -
The request body contains an array of
requests
, each specifying aCreateAccessBindingRequest
for the access binding to be created, with a maximum of 1000 access bindings allowed in a batch. -
Successful responses return a BatchCreateAccessBindingsResponse, and the method requires the
https://www.googleapis.com/auth/analytics.manage.users
OAuth scope for authorization.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CreateAccessBindingRequest
- Try it!
Creates information about multiple access bindings to an account or property.
This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.
HTTP request
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchCreate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
Required. The requests specifying the access bindings to create. A maximum of 1000 access bindings can be created in a batch. |
Response body
If successful, the response body contains an instance of BatchCreateAccessBindingsResponse
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.manage.users
CreateAccessBindingRequest
Request message for accessBindings.create RPC.
JSON representation |
---|
{
"parent": string,
"accessBinding": {
object ( |
Fields | |
---|---|
parent |
Required. Formats: - accounts/{account} - properties/{property} |
accessBinding |
Required. The access binding to create. |