绑定设备
POST
/api/device/v1/create
请求参数
Header 参数
ak
string
必需
默认值:
{{ak}}
timestamp
integer
必需
默认值:
{% mock 'timestamp' , 's' %}
sign
string
必需
默认值:
{% mock 'string' , 'lower' , 32 , 32 %}
Body 参数application/json
biz_type
integer
固定值 8
device_id
string
设备ID
remark
string
备注
isp
string
运营商
province
string
省份
city
string
城市
refer
string
必需
up_bandwidth
integer
必需
line_number
integer
线路数量
示例
{
"biz_type": 0,
"device_id": "string",
"remark": "string",
"isp": "string",
"province": "string",
"city": "string",
"refer": "string",
"up_bandwidth": 0,
"line_number": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.bmtcloud.com.cn/api/device/v1/create' \
--header 'ak;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
"biz_type": 0,
"device_id": "string",
"remark": "string",
"isp": "string",
"province": "string",
"city": "string",
"refer": "string",
"up_bandwidth": 0,
"line_number": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
current_time
integer
必需
event_id
string
必需
示例
{
"code": 0,
"message": "success",
"current_time": 1676795641,
"event_id": "20230219163401773009100000004787",
"data": {}
}
🟢200公共响应