列出文档目录
GET/open/v1/documents/directories预览scope: document.read
这是预览能力:字段与行为可能在后续 minor 版本中调整,调整会写进更新日志。近 30 天内新增的能力,或在生产环境 90 天内没有调用记录的能力,标为「预览」;其余为「稳定」。预览能力的字段与行为可能在后续 minor 版本中调整,调整会写进更新日志。
请求
参数
| 名称 | 位置 | 类型 | 约束 | 说明 |
|---|---|---|---|---|
| owner_ref | 查询串 | string | 长度≤128 | |
| parent_id | 查询串 | integer | ≥-1 |
响应
200请求已成功处理
| 字段 | 类型 | 约束 | 说明 |
|---|---|---|---|
| data | object | 不接受额外字段 | |
| items必填 | array<object> | ||
| [ ] | object | 不接受额外字段 | |
| directory_id必填 | integer | ≥1 | |
| name必填 | string | null | 长度≤255 | |
| parent_id必填 | integer | null | ≥1 | |
| owner_ref必填 | string | null | 长度≤128 | |
| kind必填 | string | 枚举 "directory" / "document" | |
| doc_id必填 | integer | null | ≥1 | |
| created_at必填 | string(date-time) | null(date-time) |
错误状态
| HTTP | 含义 |
|---|---|
| 400 | 请求参数无效 |
| 401 | API Key 无效 |
| 403 | API Key 无权限 |
| 404 | 文档、任务或其他资源不存在 |
| 500 | 服务内部异常 |
| 502 | 上游服务异常 |
| 503 | 能力暂不可用 |
| 504 | 上游服务超时 |