Skip to main content
POST
/
api
/
v1
/
rules
/
alerts
/
compute
On-demand alert calculation for a flock and date Evaluates ALL rules (ignores...
curl --request POST \
  --url http://localhost:3000/api/v1/rules/alerts/compute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flockId": "<string>",
  "date": "<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.

date
string

date — see API source for exact type.

Response

OK

message
string
data
object