Create Directory
Filesystem
Create Directory
Create a directory inside the session workspace. Parents are created automatically.
PUT
Create Directory
Overview
Creates a directory at the given workspace-relative path. Missing parent directories are created automatically (mkdir -p semantics). Creating an existing directory is a no-op and returns 201.
Path Parameters
Browser session ID (UUID).
Body
Workspace-relative directory path to create.
Unix mode (octal). Applied to the final directory.
Example Request
Response
Success Response (201)
The created workspace-relative directory path.
Error Responses
| Status | Description |
|---|---|
400 | Invalid path. |
401 | Unauthorized — invalid or missing API key. |
404 | Session not found. |
409 | Path exists and is not a directory. |