Hanzo AI
OpenapiPatrol

Create fix

Records where a unit is. It appends the position to the unit's trail, moves the unit's own coordinates and last-seen stamp, and publishes one frame to…

POST /v1/patrol/unit/{name}/fix

Addresshttps://api.hanzo.ai/v1/patrol/unit/{name}/fix
MethodPOST
Operationpost_patrol_unit_by_name_fix
AuthAuthorization: Bearer $HANZO_API_KEY

Records where a unit is. It appends the position to the unit's trail, moves the unit's own coordinates and last-seen stamp, and publishes one frame to every screen watching. An officer may report only their own unit; the control room may report any.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
namepathstringyesName is the unit's call sign, from the path.
atbodystringAt is not a caller's to fill. A position report is stamped by the server, and a body naming it is refused rather than silently restamped: the trail is the…
latbodynumber (double)Lat is the latitude in degrees.
lonbodynumber (double)Lon is the longitude in degrees.
namebodystringName is the unit's call sign, from the path.

Response

StatusBodyMeaning
200patrol.patrolFixOutok
defaultproblem-detailsrefused

200 body — 2 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolFixed
data.atbodystringAt is the moment the position was recorded under.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol unit fix <name>

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page