Hanzo AI
OpenapiPatrol

Create event

Writes one feed row by hand and pushes it to every screen watching.

POST /v1/patrol/event

Addresshttps://api.hanzo.ai/v1/patrol/event
MethodPOST
Operationpost_patrol_event
AuthAuthorization: Bearer $HANZO_API_KEY

Writes one feed row by hand and pushes it to every screen watching. It is how a controller puts something on the record that no automatic write would have produced.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
detailbodystringDetail is the longer account.
levelbodystringLevel is red, amber, green or cyan.
sitebodystringSite is the site it is about, by document name.
sourcebodystringSource is what raised it.
titlebodystringTitle is the one line the feed shows.
unitbodystringUnit is the unit it is about, by call sign.

Response

StatusBodyMeaning
201patrol.patrolEventOutcreated
defaultproblem-detailsrefused

201 body — 9 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolEvent
data.atbodystringAt is when it was raised.
data.detailbodystringDetail is the longer account, or empty.
data.levelbodystringLevel is red, amber, green or cyan.
data.namebodystringName is the event's document name.
data.sitebodystringSite is the site the event is about, or empty.
data.sourcebodystringSource is what raised it.
data.titlebodystringTitle is the one line the feed shows.
data.unitbodystringUnit is the unit the event is about, or empty.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol event create

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page