Hanzo AI
OpenapiPatrol

Create step

Performs one act on an incident: it stamps the act's time, moves the state, appends the act to the trail, and runs what the act sets in motion — a unit…

POST /v1/patrol/incident/{name}/step

Addresshttps://api.hanzo.ai/v1/patrol/incident/{name}/step
MethodPOST
Operationpost_patrol_incident_by_name_step
AuthAuthorization: Bearer $HANZO_API_KEY

Performs one act on an incident: it stamps the act's time, moves the state, appends the act to the trail, and runs what the act sets in motion — a unit assigned, a site secured, a report filed, a controller told.

The states run forward only. An act from a state it does not leave is 409 naming the state the incident is in, and a caller without the act's roles is refused.

Request

7 fields, body application/json (required).

FieldInTypeRequiredDescription
namepathstringyesName is the incident's document name, from the path.
actbodystringAct is VERIFY, DISPATCH, ROLL, ARRIVE, CHECK, SECURE, FILE, CLOSE or ESCALATE.
detailbodystringDetail is what to write on the trail with this act.
falsebodybooleanFalse says the activation turned out to be nothing, read by CLOSE.
namebodystringName is the incident's document name, from the path.
outcomebodystringOutcome is what the incident came to, read by CLOSE.
unitbodystringUnit is the call sign to send, read by DISPATCH.

Response

StatusBodyMeaning
200patrol.patrolIncidentOutok
defaultproblem-detailsrefused

200 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 step <name>

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page