Hanzo
OpenapiLegal

Saves the org's own version of a template — a custom NDA, a house MSA — and…

Saves the org's own version of a template — a custom NDA, a house MSA — and returns it with its new version number.

PUT /v1/legal/templates/{id}

Addresshttps://api.hanzo.ai/v1/legal/templates/{id}
MethodPUT
Operationput_legal_templates_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Saves the org's own version of a template — a custom NDA, a house MSA — and returns it with its new version number. It takes effect for that org only; other orgs keep the built-in.

Two boundaries cannot be crossed here. Overriding a built-in INHERITS its category and its counsel-review posture, which can be raised but never dropped; and a formation or equity template is counsel-review whatever the caller sends, so no org can generate a securities-class document without the notice.

The body is validated on save, not at generation: a template that references an UNDECLARED merge field is refused with 400 rather than stored and rendered blank into a contract months later.

Request

9 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the template to override, from the path.
bodybodystringBody is the text/template source. Required.
categorybodystringCategory groups the template: formation, equity, ops or sales.
counselReviewbodybooleanCounselReview marks a template whose documents must carry the counsel notice.
fieldsbodyField[]Fields declares the merge fields the body consumes.
fields[].keybodystringKey is the identifier the body substitutes ({{.key}}) and the key a generation's data map must carry.
fields[].labelbodystringLabel is the human prompt for whoever fills the value in — "Governing law (state)".
idbodystringID is the template to override, from the path.
titlebodystringTitle is the template's display name.

Response

StatusBodyMeaning
200templateReplyok

200 body — 12 fields.

FieldInTypeAlwaysDescription
disclaimerbodystringDisclaimer is the boundary made visible on the wire.
templatebodylegalTemplate
template.bodybodystring
template.categorybodystring
template.counselReviewbodyboolean
template.fieldsbodyField[]
template.fields[].keybodystringKey is the identifier the body substitutes ({{.key}}) and the key a generation's data map must carry.
template.fields[].labelbodystringLabel is the human prompt for whoever fills the value in — "Governing law (state)".
template.idbodystring
template.originbodystring
template.titlebodystring
template.versionbodyinteger

Failure carries the platform error shape — see Errors.

Examples

hanzo legal templates set <id>

Legal API · All Hanzo APIs · Interactive reference

How is this guide?

On this page