归档 Forward Session 中的 child thread。
HTTP 200 OK
请求头
| Header | 是否必填 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer <PAT> |
| Idempotency-Key | 否 | 有副作用请求可选的幂等键。 |
路径参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
session_id | string | 是 | Session ID。 |
thread_id | string | 是 | Thread ID。 |
示例请求
示例响应
HTTP 200 OK
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
| 返回值 | object | 归档后的 Thread 对象。 |
错误
| HTTP | Type | Code | 触发条件 |
|---|---|---|---|
| 404 | not_found_error | session_not_found | Session 不存在。 |
| 404 | not_found_error | thread_not_found | Thread 不存在或不属于该 Session。 |
| 409 | conflict_error | coordinator_thread_not_archivable | 尝试归档 coordinator thread。 |
| 409 | conflict_error | thread_not_idle | Thread 当前不是 idle,不能归档。 |
| 401 | authentication_error | authentication_required | PAT 无效或已过期。 |
备注
- 只允许归档
role=child且status=idle的 Thread。 - 响应为收敛后的 Forward Thread 对象。