AI-generated Key Takeaways
- 
          Updates labels assigned to a Merchant Center account by a CSS user. 
- 
          Requires a POST request to the specified URL with merchant ID and account ID as path parameters. 
- 
          The request body must contain an AccountsUpdateLabelsRequest object specifying the label IDs to be assigned. 
- 
          Upon successful execution, the response will contain a confirmation with kind as content#accountsUpdateLabelsResponse.
- 
          Authorization requires the https://www.googleapis.com/auth/contentscope.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- AccountsUpdateLabelsRequest
- Try it!
Updates labels that are assigned to the Merchant Center account by CSS user.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/{accountId}/updatelabels
Path parameters
| Parameters | |
|---|---|
| merchantId | 
 The ID of the managing account. | 
| accountId | 
 The ID of the account whose labels are updated. | 
Request body
The request body contains an instance of AccountsUpdateLabelsRequest.
Response body
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "kind": string } | 
| Fields | |
|---|---|
| kind | 
 Identifies what kind of resource this is. Value: the fixed string " | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
AccountsUpdateLabelsRequest
| JSON representation | 
|---|
| { "labelIds": [ string ] } | 
| Fields | |
|---|---|
| labelIds[] | 
 The IDs of labels that should be assigned to the account. |