Skip to main content
POST
/
api
/
v1
/
iot
/
devices
Register new IoT device
curl --request POST \
  --url http://localhost:3000/api/v1/iot/devices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flockId": "<string>",
  "name": "<string>",
  "type": "<string>",
  "location": "<string>",
  "serialNumber": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
flockId
string

flockId — see API source for exact type.

name
string

name — see API source for exact type.

type
string

type — see API source for exact type.

location
string

location — see API source for exact type.

serialNumber
string

serialNumber — see API source for exact type.

Response

Created

message
string
data
object