Skip to main content
POST
/
api
/
v2
/
analytics
/
environmental-readings
Record new environmental reading for a flock
curl --request POST \
  --url http://localhost:3000/api/v2/analytics/environmental-readings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flockId": "<string>",
  "temperature": "<string>",
  "humidity": "<string>",
  "ventilationRate": "<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.

temperature
string

temperature — see API source for exact type.

humidity
string

humidity — see API source for exact type.

ventilationRate
string

ventilationRate — see API source for exact type.

Response

OK

message
string
data
object