Hanzo AI
OpenapiPatrol

Create move

Records a key set leaving, returning, or being counted, and moves the register row to match.

POST /v1/patrol/key/{name}/move

Addresshttps://api.hanzo.ai/v1/patrol/key/{name}/move
MethodPOST
Operationpost_patrol_key_by_name_move
AuthAuthorization: Bearer $HANZO_API_KEY

Records a key set leaving, returning, or being counted, and moves the register row to match. The register says where a set is now and the movements say how it got there, so a movement is written once and never edited.

Who signed for the move is the caller, stamped from the request. A body that named the signer would make the chain of custody a value the signer chose.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
namepathstringyesName is the key set's reference, from the path.
actbodystringAct is out, in or audit.
holderbodystringHolder is who the keys went to.
jobbodystringJob is the work the keys were drawn for.
namebodystringName is the key set's reference, from the path.

Response

StatusBodyMeaning
200patrol.patrolKeyOutok
defaultproblem-detailsrefused

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodypatrol.patrolKey
data.holderbodystringHolder is who has it now.
data.movedbodystringMoved is when it last changed hands.
data.namebodystringName is the key set's reference, which is its document name.
data.sitebodystringSite is the site the keys open.
data.wherebodystringWhere is where the set is kept.

Failure carries the platform error shape — see Errors.

Examples

hanzo patrol key move <name>

Patrol API · All Hanzo APIs · Interactive reference

How is this guide?

On this page