> ## Documentation Index
> Fetch the complete documentation index at: https://developers.myhero.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Create document

> Create a new document (file) or folder in a project. Set type to "FOLDER" for folders, "FILE" for documents.

`create_document`

Create a new document (file) or folder in a project. Set type to "FOLDER" for folders, "FILE" for documents.

## Parameters

<ParamField path="name" type="string" required>
  Document or folder name.
</ParamField>

<ParamField path="type" type="string, enum: 'FILE' | 'FOLDER'" default={"FILE"}>
  Node type: "FILE" or "FOLDER".
</ParamField>

<ParamField path="parentId" type="string">
  Parent folder ID. Omit for project root level.
</ParamField>

<ParamField path="projectId" type="string" />

<ParamField path="description" type="string">
  Optional document description.
</ParamField>

<ParamField path="reference" type="string">
  Optional document reference.
</ParamField>
