Update user information¶
Update the name, description and label of the specified user in the workspace. This operation completely updates the user information according to the submitted content. Unreserved descriptions or tags will be cleared.
POST $CLOUDSIGMA_API_BASE/user/update_info
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First select user. If you need to keep or adjust the label, then select user label. Confirm that the submission contains the user descriptions and tags you wish to retain.
Prepare personal access token and target workspace ID with corresponding permissions for the target workspace.
Request body¶
curl -X POST "$CLOUDSIGMA_API_BASE/user/update_info" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"id": "user-001"
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
id |
string or number |
Yes |
The user’s product account UID or IAM reference. Exact strings are recommended. Numeric input preserves the text of numeric tokens and does no integer normalization. |
name |
string |
Yes |
Username. |
description |
string |
No |
Updated user instructions. When omitted, it is treated as an empty string. |
tag_list |
array of object |
No |
Updated full tag list. When omitted, an empty list is treated. |
tag_list[].id |
integer |
Yes |
Tag ID. |
tag_list[].value |
string |
Yes |
tag value. |
id in the request body is recommended to use a string to fill in the product account UID or IAM reference. The interface also accepts JSON numbers, but the text format of the number is preserved and is not converted to a standard integer. null or null value is invalid, do not apply rules for IAM path user ID.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
OK when successful. |
msg |
string |
OK when successful. |
data |
null |
Fixed to null on success. |
Error response¶
{
"code": "INVALID_ARGUMENT",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |