Hanzo
OpenapiTrust

Writes one record into a section of YOUR organization's trust centre — profile,…

Writes one record into a section of YOUR organization's trust centre — profile, control, document, subprocessor, policy, faq, update or risk.

PUT /v1/trust/{kind}/{id}

Addresshttps://api.hanzo.ai/v1/trust/{kind}/{id}
MethodPUT
Operationput_trust_by_kind_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Writes one record into a section of YOUR organization's trust centre — profile, control, document, subprocessor, policy, faq, update or risk.

A control written here is held to exactly the rule a control committed to the deployment's own inventory is held to, by the same validator: its prose may not claim a certificate and may not name a framework (a framework belongs in the mappings, where it arrives attached to a number), anything short of automated must say what is missing, and a mapping to a clause no framework declares is refused rather than scored as nothing.

A document defaults to GATED. An artifact an independent auditor signed — a SOC 2 report, an ISO certificate, a penetration test, an auditor letter — cannot be made public at all; it is released through a grant. A self-assessment can, because the organization is the one attesting it.

The deployment's OWN control inventory is governed in git and is not writable here: naming one of its ids is a conflict, not an overwrite.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
kindpathstringyesKind is the section being written.
idpathstringyesID is the record's id.
databodyanyData is the record. What may be in it depends on the section, and every section's required fields are validated: a control is held to the same rule a committed…
idbodystringID is the record's id.
kindbodystringKind is the section being written.
ordbodyintegerOrd orders this record within its section, ascending, ties broken by id.

Response

StatusBodyMeaning
200writtenok

200 body — 3 fields.

FieldInTypeAlwaysDescription
idbodystringID is the record's id — the one supplied, or the one minted when the caller supplied none.
kindbodystringKind is the section written.
updatedbodyintegerUpdated is when it was written, unix milliseconds.

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.


Trust API · All Hanzo APIs · Interactive reference

How is this guide?

On this page