Hanzo AI
OpenapiPatrol

Create report

Composes and files a report from one estate read, so the same figures read the same a month later.

POST /v1/patrol/report

Addresshttps://api.hanzo.ai/v1/patrol/report
MethodPOST
Operationpost_patrol_report
AuthAuthorization: Bearer $HANZO_API_KEY

Composes and files a report from one estate read, so the same figures read the same a month later. The text is stored on the document; the PDF is produced on read at /v1/patrol/report/{name}.

A client report naming a customer is an account of that customer's estate and is theirs to download; naming none covers every customer, which is an account of the operation.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
clientbodystringClient is the customer to report on, read by kind client.
frombodystringFrom is the start of the window to cover.
incidentbodystringIncident is the incident to report on, required for kind incident.
kindbodystringKind is shift, incident or client.
tobodystringTo is the end of that window.

Response

StatusBodyMeaning
201patrol.patrolReportOutcreated
defaultproblem-detailsrefused

201 body — 9 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolReport
data.atbodystringAt is when it was filed.
data.bodybodystringBody is the report as text.
data.clientbodystringClient is the customer it is about, or empty.
data.frombodystringFrom is the start of the window the report covers.
data.incidentbodystringIncident is the incident it is about, or empty.
data.kindbodystringKind is shift, incident or client.
data.namebodystringName is the report's document name and the segment /v1/patrol/report/{name} addresses it by.
data.tobodystringTo is the end of that window.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol report create

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page