POST 并应用部分补丁:包含的字段被替换,省略的字段保持不变。
接口
认证
Authorization: Bearer <api_key> 或 Authorization: ApiKey <api_key>。
路径参数
string
required
会话标识符。
请求体
string
新的会话状态,例如
active 或 archived。object
用于替换的元数据对象。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
就地更新咏唱引擎云会话的状态或元数据。遵循 OpenAI beta 的部分更新约定,使用 POST。
POST 并应用部分补丁:包含的字段被替换,省略的字段保持不变。
POST /v1/agents/sessions/{session_id}
Authorization: Bearer <api_key> 或 Authorization: ApiKey <api_key>。
active 或 archived。curl -X POST https://agent.example.com/v1/agents/sessions/sess_0198c... \
-H "Authorization: Bearer $ARIA_AGENT_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "archived", "metadata": {"resolution": "resolved"}}'
Was this page helpful?