POST
Criar sensor

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"Medidor Solar 01"

description
string
metadata
object
admins
string<uuid>[]

Response

Sensor criado.

id
string<uuid>
device_id
string | null
name
string
public_key
string
wallet_address
string
Example:

"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"

status
enum<string>
Available options:
active,
inactive,
blocked
location
string
last_communication_at
string<date-time> | null
created_at
string<date-time>