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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;error&quot;:&quot;\u003cstring\u003e&quot;}