Skip to main content
POST
/
api
/
device
/
add
添加设备
curl --request POST \
  --url https://api.example.com/api/device/add \
  --header 'Authentication: <authentication>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sn": "device000001",
  "name": "设备你好",
  "deptId": "000000",
  "type": "device",
  "gatewaySn": "gateway00001",
  "location": {}
}
'
{}

Headers

Authentication
string
required

Body

application/json
sn
string
required
type
string
required

device、gateway、soft_gateway

name
string
deptId
string
productModel
string

产品编码,按产品添加

gatewaySn
string

device时必需

location
object
profileCustom
object

添加产品设备自定义profile 如:{"config.port": 10086}

tag
string

标签名

Response

200 - application/json

The response is of type object.