Create Directory
Create a directory inside the webspace home.
Create a directory inside the webspace home.
Required scope: webspace:manage
| Header | Required | Value |
|---|---|---|
Authorization |
Yes | Bearer YOUR_API_KEY |
Content-Type |
Yes | application/json |
| Parameter | Required | Description |
|---|---|---|
path |
Yes | Absolute path inside ~/. |
recursive |
No | Default true (mkdir -p). Set to false to fail when parents are missing. |
{ "data": { "path": "/home/ws_0862c/uploads", "created": true, "recursive": true } }
curl -X POST https://hosting.site.quest/api/v1/webspaces/69e80ac1.../sftp/mkdir \
-H "Authorization: Bearer sq_live_..." \
-H "Content-Type: application/json" \
-d '{ "path": "/home/ws_0862c/uploads" }'
This action is also available via the webspace_mkdir MCP tool.