Skip to main content
POST
/
api
/
v1
/
anomalies
Create manual anomaly (Admin)
curl --request POST \
  --url http://localhost:3000/api/v1/anomalies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flockId": "<string>",
  "severity": "<string>",
  "anomalyType": "<string>",
  "detectedValue": "<string>",
  "expectedValue": "<string>",
  "deviation": "<string>",
  "description": "<string>",
  "visibleToRoles": "<string>",
  "confidence": "<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.

severity
string

severity — see API source for exact type.

anomalyType
string

anomalyType — see API source for exact type.

detectedValue
string

detectedValue — see API source for exact type.

expectedValue
string

expectedValue — see API source for exact type.

deviation
string

deviation — see API source for exact type.

description
string

description — see API source for exact type.

visibleToRoles
string

visibleToRoles — see API source for exact type.

confidence
string

confidence — see API source for exact type.

Response

Created

message
string
data
object