Method: networks.customFields.batchCreate

API to batch create CustomField objects.

HTTP request

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

Path parameters

Parameters
parent

string

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

Request body

The request body contains data with the following structure:

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

object (CreateCustomFieldRequest)

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

Response body

Response object for customFields.batchCreate method.

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

JSON representation
{
  "customFields": [
    {
      object (CustomField)
    }
  ]
}
Fields
customFields[]

object (CustomField)

The CustomField objects created.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

CreateCustomFieldRequest

Request object for customFields.create method.

JSON representation
{
  "parent": string,
  "customField": {
    object (CustomField)
  }
}
Fields
parent

string

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

customField

object (CustomField)

Required. The CustomField to create.