v1

latestOpenAPI 3.1.02026-08-04409.4 KB

Create Device

API that creates new device in the system

post/device

Headers

Content-Typestring
Authorizationstring

Bearer token

Request body

identificationstring

string | unique | required

modelstring

max:128 | optional

schemaIdinteger

min:1 | optional

groupIdinteger

min:1 | optional

namestring

max:128 | optional

indoorboolean

optional

Response

200

Example response

{
  "data": {
    "userId": 18512,
    "schemaId": 1,
    "groupId": 1,
    "id": 4532157,
    "name": "John's Device",
    "model": "cityos-air-v1",
    "addOn": "2017-01-17T14:55:23",
    "editOn": "2017-01-17T14:55:23",
    "active": true,
    "identification": "47:7e:11:2c:69:24",
    "indoor": true
  }
}