Update a user tag¶
Update the name and description of a user tag. Updating a tag does not automatically change other information for associated users.
POST https://api.moi.matrixorigin.cn/v5/user/tag/update
Preparation before calling¶
First select a user tag.
Prepare a personal access token with the required permissions for the target workspace and the target workspace ID.
Request parameters¶
curl -X POST "https://api.moi.matrixorigin.cn/v5/user/tag/update" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"id": 1001,
"name": "example",
"description": "Example tag"
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
Tag ID. |
|
string |
Yes |
Tag name. |
|
string |
No |
Updated tag description. When omitted, an empty string is saved. |
The tag name has the same character and length limits as when creating a tag. This request writes both the name and description.
Successful response¶
On success, returns the updated tag ID.
{
"code": "OK",
"msg": "OK",
"data": {
"id": 12
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
integer |
Updated tag ID. |
Error response¶
{
"code": "INVALID_ARGUMENT",
"msg": "Invalid request parameters",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
null |
— |