Skip to main content

Modify sub-user status

  • POST /api/v3/accountCenter/userStatus

Weight(IP): 5

Freezes or unfreezes a specified end user. When frozen, the user's login and API key access are restricted. Access is restored once the user is unfrozen. Currently, action=1 indicates login status, and only 1 is supported.

Request parameters

ParameterTypeRequired?Description
subUserIdLongYesEnd-user UID.
actionIntegerYesRestriction action. 1 indicates login status. Currently, only 1 is supported.
statusIntegerYesTarget status. 1 = frozen. 0 = unfrozen.

Request example

{
"subUserId": 1234567890,
"action": 1,
"status": 0
}

Response parameters

Field nameTypeDescription
subUserIdLongEnd-user UID.
statusIntegerUpdated status.
tsLongOperation success timestamp in milliseconds.

Response example

{
"subUserId": 1234567890,
"status": 0,
"ts": 1780000000000
}