Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/sessions/{session_id}/archive
将 Session 归档。归档后的 Session 不再出现在默认列表中(需传 include_archived=true 查询参数才能列出),但数据保留。
与 Environment 和 Vault 不同,Session 归档后
status 字段保持为 "idle",不会变为 "archived"。归档效果仅体现在默认列表不返回该 Session。当前 API 无 unarchive/restore 端点。请求头
| 头部 | 必选 | 说明 |
|---|---|---|
Authorization | 是 | Bearer <PAT> |
Content-Type | 是 | application/json |
路径参数
| 参数 | 类型 | 必选 | 说明 |
|---|---|---|---|
session_id | string | 是 | Session ID(sess_ 前缀) |
示例请求
示例响应
HTTP 200 OK 返回完整的 Session 对象。错误码
| HTTP | type | 触发条件 |
|---|---|---|
| 401 | authentication_error | PAT 无效或过期 |
| 404 | not_found_error | Session 不存在 |