Hanzo AI
OpenapiPatrol

Create incident

Records a response by hand, in state received and carrying the site's tier and SLA.

POST /v1/patrol/incident

Addresshttps://api.hanzo.ai/v1/patrol/incident
MethodPOST
Operationpost_patrol_incident
AuthAuthorization: Bearer $HANZO_API_KEY

Records a response by hand, in state received and carrying the site's tier and SLA. It is what a controller calls when an activation arrives by phone rather than over the intake.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
refbodystringRef is the receiving centre's own reference.
sitebodystringSite is where it is happening, by document name.
triggerbodystringTrigger is what was reported.
zonebodystringZone is the panel zone that reported.

Response

StatusBodyMeaning
201patrol.patrolIncidentOutcreated
defaultproblem-detailsrefused

201 body — 34 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolIncident
data.checkedbodystringChecked is when the premises had been walked.
data.clocksbodypatrol.patrolClock[]Clocks is the SLA clocks, present on a single-incident read.
data.clocks[].elapsedbodyinteger (int64)Elapsed is the seconds run so far, or the seconds it took when settled.
data.clocks[].labelbodystringLabel names the clock: Verify, Dispatch or On site.
data.clocks[].settledbodyinteger (int64)Settled is the seconds it took, or -1 while the clock is still running.
data.clocks[].targetbodyinteger (int64)Target is the contracted seconds.
data.closedbodystringClosed is when the incident was closed.
data.dispatchedbodystringDispatched is when a unit was assigned.
data.enroutebodystringEnroute is when that unit started moving.
data.escalatedbodystringEscalated is when it was escalated, or empty.
data.falsebodybooleanFalse says the activation turned out to be nothing.
data.filedbodystringFiled is when the report was written.
data.namebodystringName is the incident's document name.
data.onsitebodystringOnsite is when it arrived.
data.openedbodystringOpened is when the activation landed.
data.outcomebodystringOutcome is what it came to.
data.refbodystringRef is the receiving centre's own reference.
data.securedbodystringSecured is when the site was made safe.
data.sitebodystringSite is where it is happening.
data.slabodyinteger (int64)SLA is the contracted response time in minutes.
data.statebodystringState is one of received, verified, dispatched, enroute, onsite, checked, secured, filed and closed.
data.stepsbodypatrol.patrolAct[]Steps is the act trail, present on a single-incident read.
data.steps[].actbodystringAct is the act performed.
data.steps[].actorbodystringActor is who performed it.
data.steps[].atbodystringAt is when it happened.
data.steps[].detailbodystringDetail is what they wrote with it.
data.steps[].frombodystringFrom is the state the incident left.
data.steps[].tobodystringTo is the state it landed in.
data.tierbodystringTier is the site's contracted service tier.
data.triggerbodystringTrigger is what the panel reported.
data.unitbodystringUnit is the call sign attending, or empty.
data.verifiedbodystringVerified is when the activation was confirmed real.
data.zonebodystringZone is the panel zone that reported.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol incident create

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page