sandboxes
Create a directory
Changed onCreates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to mkdir -p).
post/v2/sandboxes/sessions/{sessionId}/fs/mkdir
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v2/sandboxes/sessions/{sessionId}/fs/mkdir
- Auth: HTTP bearer
Path parameters
sessionIdstring required
The unique identifier of the session to create the directory in.
Example:sbx_abc123
Query parameters
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"cwd": "/home/vercel-sandbox",
"path": "src/components"
}Response
The directory was created successfully.
object required
Changes
- info
removed the non-success response with the status
- info
- info
endpoint added
- info