- API Reference
- API Description
- Tag Management
- Adding Tags to a Specified Stream
Adding Tags to a Specified Stream¶
Function¶
This API is used to add tags to a specified stream.
Calling Method¶
For details, see Calling APIs.
URI¶
POST /v2/{project_id}/stream/{stream_id}/tags
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID |
stream_id | Yes | String | Stream ID Maximum: 60 |
Request Parameters¶
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
key | No | String | Tag key.
Minimum: 1 Maximum: 36 |
value | No | String | Value.
Minimum: 0 Maximum: 43 |
Response Parameters¶
None
Example Requests¶
Adding Tags to a Specified Stream
POST https://{Endpoint}/v2/{project_id}/stream/{stream_id}/tags
{
"tag" : {
"key" : "key",
"value" : "value"
}
}
Example Responses¶
None
Status Codes¶
Status Code | Description |
---|---|
204 | Normal response |
Error Codes¶
See Error Codes.