Method: accounts.updateLabels

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

string

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

string (int64 format)

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

string

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.