Hanzo
OpenapiReference

Takes a new version of one set.

Takes a new version of one set. SuperAdmin only.

POST /v1/reference/refresh

Addresshttps://api.hanzo.ai/v1/reference/refresh
MethodPOST
OperationriskRefreshReference
AuthAuthorization: Bearer $HANZO_API_KEY

Takes a new version of one set. SuperAdmin only.

It is platform work, not tenant work: it writes the shared baseline every organisation reads, so it is gated to the platform's own identity. Nothing here can write an organisation's overrides, and nothing an organisation sends can reach this route.

Idempotent. A version is the content digest of what was taken, so refreshing an unchanged publisher writes no rows and reports unchanged. Resumable: a run that died half-way is continued from where it stopped rather than restarted.

A set whose source needs a licence we do not hold is refused with the reason, rather than being quietly skipped.

Request

8 fields, body application/json (required).

FieldInTypeRequiredDescription
forcebodybooleanForce accepts a take whose size moved past the change bound.
receiptsbodyReferenceReceipt[]Receipts are supplied by the component that holds the membership, for a set of kind attest.
receipts[].asOfbodystringAsOf is when the load happened, RFC 3339.
receipts[].keysbodyintegerKeys is how many designations that load carried.
receipts[].refusalbodystringRefusal is why the load failed, when it did.
receipts[].sourcebodystringSource is the publisher this receipt is for.
receipts[].versionbodystringVersion is the digest of what that publisher supplied, so a refresh that changed nothing can be told from a refresh that did not run.
setbodystringSet is the set to refresh.

Response

StatusBodyMeaning
200RefreshReferenceOutok

200 body — 11 fields.

FieldInTypeAlwaysDescription
setbodystringSet is the set refreshed.
stalebodybooleanStale is whether it is STILL past its freshness bound after the refresh, which is what a publisher that has stopped answering looks like.
tookbodyReferenceTaken[]Took is what each publisher contributed.
took[].keysbodyintegerKeys is how many members it carries.
took[].refusalbodystringRefusal is why this publisher contributed nothing, if it did not.
took[].resumedbodybooleanResumed is true when this run continued a version a previous run left half-landed.
took[].sourcebodystringSource is the publisher.
took[].unchangedbodybooleanUnchanged is true when the publisher's data was byte-for-byte the set we already held.
took[].versionbodystringVersion is the content digest that landed.
took[].wrotebodyintegerWrote is how many rows this run actually wrote.
versionbodystringVersion is the set's new composed version.

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