Folders
Create a new directory (folder)
Create a new directory (folder) to organize your files within the workspace.
POST
Create a new directory (folder)
Request · Response · Guide: Folders
More details
More details
Directories can be nested by providing a parentId to create subdirectories. The system enforces a maximum directory depth limit (configurable via system settings, default is 1 level).Request Body Parameters:
- name (required): The name of the directory
- description (optional): A description for the directory
- parentId (optional): The ID of the parent directory to create a subdirectory. If not provided, the directory will be created at the root level
- Basic information: id, name, description, status
- Hierarchy information: parentId, depth
- Metadata: userId, organizationId, workspaceId, createdBy, lastModifiedBy, etc.
- Timestamps: createdAt, updatedAt
- The directory is created with status: “active” by default
- The authenticated user becomes the owner of the directory
- Directory depth is automatically calculated based on parent hierarchy
Authorizations
API key for authentication
Headers
Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.
Body
application/json