Method: networks.labels.batchUpdate

API to batch update Label objects.

HTTP request

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

Path parameters

Parameters
parent

string

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

Request body

The request body contains data with the following structure:

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

object ( UpdateLabelRequest )

Required. The Label objects to update. A maximum of 100 objects can be updated in a batch.

Response body

Response object for labels.batchUpdate method.

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

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

object ( Label )

The Label objects updated.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview .

UpdateLabelRequest

Request object for labels.patch method.

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

object ( Label )

Required. The Label to update.

The Label 's name is used to identify the Label to update.

updateMask

string ( FieldMask format)

Optional. The list of fields to update.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .

Create a Mobile Website
View Site in Mobile | Classic
Share by: