AI-generated Key Takeaways
- 
          
The
updateLabelsmethod updates labels assigned to CSS/MC accounts by a CSS domain using a POST request. - 
          
The request requires a
namepath parameter specifying the label resource name. - 
          
The request body is a JSON object containing an array of
labelIdsand an optionalparentfield. - 
          
A successful response returns an instance of
Account. - 
          
The method requires the
https://www.googleapis.com/auth/contentOAuth scope for authorization. 
Updates labels assigned to CSS/MC accounts by a CSS domain.
HTTP request
POST https://css.googleapis.com/v1/{name=accounts/*}:updateLabels
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. The label resource name. Format: accounts/{account}  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "labelIds": [ string ], "parent": string }  | 
                
| Fields | |
|---|---|
labelIds[] | 
                  
                     
 The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.  | 
                
parent | 
                  
                     
 Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}  | 
                
Response body
If successful, the response body contains an instance of Account.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.