Create device
POST {{baseUrl}}/api/:projectId/devices/create
Create a new device. If you set ifNotExists
to false
and the device already exists, the deviceType
will be overwritten.
Request Body
{"deviceId"=>"<string>", "deviceType"=>"<string>", "ifNotExists"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":"\u003cboolean\u003e","error":"\u003cstring\u003e"}