在沙盒中创建目录
请求头(Request Header)
请参考API 使用指南
请求参数(Request Parameters)
| 字段 | 类型 | 必须 | 位置 | 描述 |
|---|---|---|---|---|
| workspace_id | string | 是 | path | 工作空间 ID ,获取方式可以参考快速开始 |
| sandbox_id | string | 是 | path | 沙盒 ID |
| directory_path | string | 是 | body | 待创建目录路径 |
请求示例(Request Example)
curl -L -X POST 'https://sandbox.cn-sh-01.sensecoreapi.dev/studio/sandbox/v1/workspaces/01993ca4-edfa-7382-8161-43a4919681ab/sandboxes/cd9b9ea5-0566-40c4-9c5c-8498d7093a44:createDir' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"directory_path":"/data/test"
}'
响应(Response)
异常情况请参考异常响应说明
| 字段 | 类型 | 描述 |
|---|---|---|
| directory_path | string | 已创建目录路径 |
响应示例(Response Example)
- 正常响应
{
"directory_path": "/data/test"
}