We will sunset v2 of the Content API on March 29th, 2021. To avoid disruptions with your integration, please migrate to v2.1 as soon as possible. For more information, see Migrating to v2.1.

Method: accounts.updatelabels

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

string

The ID of the managing account.

accountId

string

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

string

Identifies what kind of resource this is. Value: the fixed string

"content#accountsUpdateLabelsResponse"

.

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[]

string

The IDs of labels that should be assigned to the account.