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
| Parameter | Type | Required? | Description |
|---|---|---|---|
| subUserId | Long | Yes | End-user UID. |
| action | Integer | Yes | Restriction action. 1 indicates login status. Currently, only 1 is supported. |
| status | Integer | Yes | Target status. 1 = frozen. 0 = unfrozen. |
Request example
{
"subUserId": 1234567890,
"action": 1,
"status": 0
}
Response parameters
| Field name | Type | Description |
|---|---|---|
| subUserId | Long | End-user UID. |
| status | Integer | Updated status. |
| ts | Long | Operation success timestamp in milliseconds. |
Response example
{
"subUserId": 1234567890,
"status": 0,
"ts": 1780000000000
}