Hanzo
OpenapiFramework

Moves a draft to submitted (docstatus 0 → 1) after its on_submit hooks agree.

Moves a draft to submitted (docstatus 0 → 1) after its on_submit hooks agree.

POST /v1/framework/{doctype}/{name}/submit

Addresshttps://api.hanzo.ai/v1/framework/{doctype}/{name}/submit
MethodPOST
Operationpost_framework_by_doctype_by_name_submit
AuthAuthorization: Bearer $HANZO_API_KEY

Moves a draft to submitted (docstatus 0 → 1) after its on_submit hooks agree. A submitted document is IMMUTABLE: further writes and deletes are refused until it is cancelled. Only a submittable DocType has this lifecycle; any other docstatus is an illegal transition.

Request

2 fields.

FieldInTypeRequiredDescription
doctypepathstringyesDocType is the document's DocType, from the path.
namepathstringyesName is the document's name — its key within the DocType — from the path.

Response

StatusBodyMeaning
200objectok

200 body — 1 field.

FieldInTypeAlwaysDescription
*bodyobject

Failure carries the platform error shape — see Errors.

Examples

hanzo framework doctype submit <doctype> <name>

Framework API · All Hanzo APIs · Interactive reference

How is this guide?

On this page