AI-generated Key Takeaways
-
This operation updates labels assigned to CSS/MC accounts by a CSS domain using an HTTP POST request to the specified URL.
-
The request requires path and body parameters, including account name and a list of label IDs.
-
A successful operation returns an
Account
object in the response body. -
Authorization requires the
https://www.googleapis.com/auth/content
OAuth scope.
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.