This API is used to delete resource tags (stream tags) in batches. This API is idempotent. If the deleted tag does not exist, the deletion is considered successful by default. The tag character set range is not verified during tag deletion. When you delete tags, the tag structure cannot be missing, and the key cannot be left blank or be an empty string.
POST /v2/{project_id}/stream/{stream_id}/tags/action
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. |
stream_id |
Yes |
String |
Stream ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
action |
Yes |
String |
Operation to be performed. The value can be delete only.
Enumeration values:
|
tags |
Yes |
Array of Tag objects |
Tag list. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
key |
No |
String |
Key.
Minimum: 1 Maximum: 36 |
value |
No |
String |
Value.
Minimum: 0 Maximum: 43 |
None
Deleting Resource Tags in Batches
POST https://{Endpoint}/v2/{project_id}/stream/{stream_id}/tags/action
{
"action" : "delete",
"tags" : [ {
"key" : "key1",
"value" : "value1"
}, {
"key" : "key2",
"value" : "value3"
} ]
}
None
Status Code |
Description |
|---|---|
204 |
Normal response. |
See Error Codes.