Skip to main content
PUT
/
api
/
v1
/
iot
/
devices
/
{deviceId}
Update device configuration
curl --request PUT \
  --url http://localhost:3000/api/v1/iot/devices/{deviceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "location": "<string>",
  "status": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

deviceId
string
required

deviceId identifier

Body

application/json
name
string

name — see API source for exact type.

location
string

location — see API source for exact type.

status
string

status — see API source for exact type.

Response

OK

message
string
data
object