Hanzo
OpenapiReference

Writes your organisation's own allow and deny entries over a set.

Writes your organisation's own allow and deny entries over a set.

PUT /v1/reference/{set}

Addresshttps://api.hanzo.ai/v1/reference/{set}
MethodPUT
OperationriskSetReference
AuthAuthorization: Bearer $HANZO_API_KEY

Writes your organisation's own allow and deny entries over a set.

Idempotent on the key: writing the same entry twice is one entry, and writing it again replaces the verdict and the note. The whole batch is one transaction, so a batch that would cross the per-set bound writes nothing rather than half of itself — a half-applied deny list is worse than a refused one, because nobody can tell which half applied.

Your entries are held in your organisation's own store and are never visible to another organisation, and they never change what any other organisation sees. The shared baseline is not writable from here at all.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
setpathstringyes
entriesbodyReferenceOverrideIn[]Entries are the overrides to write, up to 1000 per call.
entries[].keybodystringKey is the member: a domain, a CIDR or address, an issuer prefix, a device digest.
entries[].notebodystringNote is why, in your own words.
entries[].verdictbodystringVerdict is allow or deny, and nothing else.

Response

StatusBodyMeaning
200SetReferenceOutok

200 body — 3 fields.

FieldInTypeAlwaysDescription
overridesbodyintegerOverrides is how many your org now holds in this set.
setbodystringSet is the set written in.
writtenbodyintegerWritten is how many entries this call wrote.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Reference API · All Hanzo APIs · Interactive reference

How is this guide?

On this page