AI-generated Key Takeaways
-
This API allows for batch creation of
CustomFieldobjects. -
The HTTP request uses the POST method to the specified URL.
-
The request requires a
parentpath parameter identifying the network. -
The request body contains a list of
CreateCustomFieldRequestobjects, with a maximum of 100 allowed in a batch. -
The response body returns a list of the created
CustomFieldobjects. -
The API requires the
https://www.googleapis.com/auth/admanagerauthorization scope.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CreateCustomFieldRequest
- Try it!
API to batch create CustomField objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/customFields:batchCreate
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requests": [
{
object ( |
| Fields | |
|---|---|
requests[] |
Required. The |
Response body
Response object for customFields.batchCreate method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"customFields": [
{
object ( |
| Fields | |
|---|---|
customFields[] |
The |
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 ( |
| Fields | |
|---|---|
parent |
Required. The parent resource where this |
customField |
Required. The |