create_doctype
Preview or create standard and site-custom DocTypes in Frappe, defining fields, permissions, and DocType-level properties for app-file or site-metadata storage.
Instructions
Preview or create a standard or site-custom DocType through Frappe.
fields accepts the native DocField properties and field types. properties
carries supported DocType-level settings such as autoname, tracking, sorting,
and search configuration. Standard DocTypes require a local app/module checkout
and Developer Mode so Frappe can write JSON, Python, JavaScript, and test files.
Site-custom DocTypes are stored in site metadata and do not generate app files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| name | Yes | ||
| fields | Yes | ||
| module | Yes | ||
| confirm | No | ||
| is_tree | No | ||
| is_custom | No | ||
| is_single | No | ||
| properties | No | ||
| permissions | No | ||
| is_child_table | No | ||
| is_submittable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||