Upsert account labels
This endpoint allows to add/update account labels.
Request
POST /insights/v1/storage/accounts/labels/upsert HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
"insights_consumer_id": String,
"insights_account_id": String,
"labels": {
<label_key>: String,
}
}
insights_account_id String, required
The id identifying the account for which the labels are added/updated.
labels Object, required
Any amount of labels consisting of key-value pairs. Keys have a minimum length of 1 and maximum length of 128. Values have a minimum length of 0 and maximum length of 1024.
Response
{}
Example request
{
"insights_consumer_id": "6c03aff-8fa0046-ffae74-b0cbc-4d5fd1",
"insights_account_id": "3b3d678f-66b7-4b23-a2a5-0bfd275e86a1",
"labels": {
"important": "",
"user-group": "private"
}
}