Skip to main content
POST
/
api
/
v1
/
operations
/
incidents
Report a new incident
curl --request POST \
  --url http://localhost:3000/api/v1/operations/incidents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flockId": "<string>",
  "type": "<string>",
  "severity": "<string>",
  "description": "<string>",
  "affectedArea": "<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.

type
string

type — see API source for exact type.

severity
string

severity — see API source for exact type.

description
string

description — see API source for exact type.

affectedArea
string

affectedArea — see API source for exact type.

Response

Created

message
string
data
object