Skip to main content

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​

ParameterTypeRequiredDescription
uidStringYesSubaccount UID, up to 127 characters. See listSubAccounts.
userNameStringNoUsername, up to 255 characters.
emailStringNoEmail address, up to 128 characters. Send an empty string to clear it.
phoneStringNoMobile phone number, up to 128 characters. Send an empty string to clear it.

Response fields​

Fields in dataTypeDescription
uidStringSubaccount 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"
}
}