Actions35
- File Actions
- Folder Actions
- Room Actions
- User Actions
Folder → Create Folder
AI-generatedSummary
Creates a new folder with a given title inside a DocSpace room or folder, or at the root of the authenticated user's "My documents" section, and returns the created folder's record.
Inputs
- Authentication (required) — Credential type used for the request: API Key, Basic Auth, OAuth2, or Personal Access Token. The matching DocSpace credential must be configured.
- In My Documents (required) — If true, the node looks up the current user's "My documents" folder ID and creates the folder there. Defaults to false.
- Parent ID (required) — Numeric ID of the room or folder to create the folder in. Shown and used only when "In My Documents" is false.
- Title (required) — Name of the new folder. Defaults to "Folder from n8n".
Output shape
One output item per input item, containing the created folder object as returned by the DocSpace API (the response field of the create-folder call).
If "Continue On Fail" is enabled, a failed item outputs an object with an
errormessage instead of stopping the workflow. The folder is created via POST to api/2.0/files/folder/{parentId}. For "My documents", an extra GET to api/2.0/files/@my is made first.
Examples
Example 1: Create a project subfolder inside an existing room
In My Documents: false; Parent ID: 1234 (room or folder ID); Title: "Q3 Reports"
Example 2: Create a personal folder in the authenticated user's My documents
In My Documents: true; Title: "Invoices"
Example 3: Create a folder per incoming item with a dynamic name
In My Documents: false; Parent ID: 5678; Title: expression such as {{ $json.customerName }}