create new account
POST
/api/account/addThere is a default limit on the number of accounts that can be created, which can be obtained from the 'get user info' API.
The 'account_limit' field in the returned userinfo indicates the limit on the number of accounts.
请求参数
Body Params application/json
account_name
string
required
new account name
password
string
required
password
tag
string
optional
tag
traffic_limit_mb
integer
required
traffic limit, 0 for no limit
Example
{
"traffic_limit_mb": 100,
"password": "password123",
"account_name": "myaccount",
"tag": "for test"
}
示例代码
Responses
result(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
account
object
required
new account info
account_name
string
optional
created_unixtime
integer
optional
id
integer
optional
password
string
optional
tag
string
optional
traffic_limit
integer
optional
traffic_used
integer
optional
user_id
integer
optional
meta_message
string
required
success or other error msg
meta_status
integer
required
1 for success, negative for error
Example
{
"account": {
"account_name": "string",
"created_unixtime": 0,
"id": 0,
"password": "string",
"tag": "string",
"traffic_limit": 0,
"traffic_used": 0,
"user_id": 0
},
"meta_message": "string",
"meta_status": 0
}
Last modified: 2 年前