Method: networks.labels.batchCreate

API to batch create Label objects.

HTTP request

POST https://admanager.googleapis.com/v1/{parent}/labels:batchCreate

Path parameters

Parameters
parent

string

Required. The parent resource where Labels will be created. Format: networks/{networkCode} The parent field in the CreateLabelRequest must match this field.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (CreateLabelRequest)
    }
  ]
}
Fields
requests[]

object (CreateLabelRequest)

Required. The Label objects to create. A maximum of 100 objects can be created in a batch.

Response body

Response object for labels.batchCreate method.

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

JSON representation
{
  "labels": [
    {
      object (Label)
    }
  ]
}
Fields
labels[]

object (Label)

The Label objects created.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

CreateLabelRequest

Request object for labels.create method.

JSON representation
{
  "parent": string,
  "label": {
    object (Label)
  }
}
Fields
parent

string

Required. The parent resource where this Label will be created. Format: networks/{networkCode}

label

object (Label)

Required. The Label to create.