Update user information¶
Update a specified user’s name, description, and tags in the workspace. This operation fully updates the user profile with the submitted content; descriptions or tags that are not retained are cleared.
POST https://moi.matrixorigin.cn/newmoi/user/update_info
Preparation before calling¶
First select the user. To retain or adjust tags, select user tags. Confirm that the submitted content includes the user description and tags you want to retain.
Prepare a personal access token and target workspace ID with the required permissions for the target workspace.
Request parameters¶
curl -X POST "https://moi.matrixorigin.cn/newmoi/user/update_info" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"id": "user-001"
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
User ID. |
|
string |
Yes |
User name. |
|
string |
No |
Updated user description; treated as an empty string when omitted. |
|
object (array) |
No |
Complete updated tag list; treated as an empty list when omitted. |
|
integer |
Yes |
Tag ID. |
|
string |
Yes |
Tag value. |
Successful response¶
On success, the user name, description, and tags have been updated using the request content and data is null.
{
"code": "OK",
"msg": "OK",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
null |
Always |
Error response¶
{
"code": "INVALID_ARGUMENT",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
null |
— |