Saving User Tag Content (by User)
Function
This API is used to save user tag content by user.
URI
PUT /v1/{project_id}/tags/{tag_id}/values
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
project_id |
tag_id |
Yes |
String |
tag_id |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Obtain a user token by calling IAM's "Obtaining a User Token" API. X-Subject-Token in the response header is the desired user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
user_id |
Yes |
String |
userId |
value |
No |
Array of strings |
value |
value_type |
No |
String |
Default tag value type. The default value is NULL.
|
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
{Custom key} |
Map<String,String> |
Example Request
The user tag content is saved.
PUT https://{endpoint}/v1/{project_id}/tags/{tag_id}/values { "user_id" : "bf32ac8de8c64d738caceede9a00d136", "value_type" : "ENUM", "value" : [ "10086" ] }
Example Response
Status code: 200
The user tag content is successfully saved.
{ "data" : true }
Status Codes
Status Code |
Description |
---|---|
200 |
The user tag content is successfully saved. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot