DuliDuli Open Platform
EN
简体中文
繁體中文
English
Quick Start APIs DuliDuli Official Website
模板

Update User Status


Request

POST  http://[SERVER:9022]/v1/user/user_status_update?access_token={access_token}

Parameters

Parameters

Type

Required

Description

access_token

string

Y

Authentication token

account_id_list

string[]

Y

Account ID list

status

string

Y

User status (Enabled: 1 or Disabled: 2)

Request Example:

json

{
"account_id_list": ["200200021","200200022"],
"status": "1"
}

Return:

{
"code": 0,
"msg": "ok",
"data":[
{
"account_id": "200200021", // 账号ID
"status": 1,
}
]
}

Return Details:

Fields

Type

Desc

data

User List

account_id

string

User ID

status

int

"1": Normal, "2": Disabled

Error Codes

code

message

Desc

100150

Invalid status

Invalid status

100151

Invalid account id list

Invalid account id list

More Global Codes

Request

POST  http://[SERVER:9022]/v1/user/user_status_update?access_token={access_token}


Parameters

Parameters

Type

Required

Description

access_token

string

Y

Authentication token

account_id_list

string[]

Y

Account ID list

status

string

Y

User status (Enabled: 1 or Disabled: 2)

Request Example:

json

{
"account_id_list": ["200200021","200200022"],
"status": "1"
}


Return:

{
"code": 0,
"msg": "ok",
"data":[
{
"account_id": "200200021", // 账号ID
"status": 1,
}
]
}

Return Details:

Fields

Type

Desc

data


User List

account_id

string

User ID

status

int

"1": Normal, "2": Disabled


状态码说明

code

message

Desc

100150

Invalid status

Invalid status

100151

Invalid account id list

Invalid account id list

More Global Codes