Update a subaccount profile
Update the profile of a local subaccount the caller can manage. Send at least one field to update.
POST /api/open/v1/account/updateSubAccount
Requires the “Sub-account Manage” permission.
Send the Idempotency-Key header with 1 to 128 visible ASCII characters.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | String | Yes | Subaccount UID, up to 127 characters. See listSubAccounts. |
| userName | String | No | Username, up to 255 characters. |
| String | No | Email address, up to 128 characters. Send an empty string to clear it. | |
| phone | String | No | Mobile phone number, up to 128 characters. Send an empty string to clear it. |
Response fields
| Fields in data | Type | Description |
|---|---|---|
| uid | String | Subaccount UID. |
Request example
{
"uid": "sample-user-1042",
"userName": "Sample employee (Sales)"
}
Response example
{
"requestId": "876fd8e1-74e4-53ae-acd6-39a12be245fc",
"code": "OK",
"msg": "Request succeeded.",
"data": {
"uid": "sample-user-1042"
}
}