AI-generated Key Takeaways
-
The API uses a POST request to the specified URL for batch updating
CustomField
objects. -
The request requires a
parent
parameter in the URL path, specifying the network where updates will occur. -
The request body contains a list of
UpdateCustomFieldRequest
objects, each defining aCustomField
to update and aupdateMask
to specify which fields to modify. -
The response body returns the updated
CustomField
objects. -
The API requires the
https://www.googleapis.com/auth/admanager
OAuth scope for authorization.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- UpdateCustomFieldRequest
- Try it!
API to batch update CustomField
objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/customFields:batchUpdate
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.batchUpdate
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.
UpdateCustomFieldRequest
Request object for customFields.patch
method.
JSON representation |
---|
{
"customField": {
object ( |
Fields | |
---|---|
customField |
Required. The The |
updateMask |
Required. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: |