全部產品
Search
文件中心

AI Coding Assistant Lingma:刪除 Session

更新時間:Jun 07, 2026

永久刪除一個 Session 及其所有關聯事件數目據。

要求標頭

頭部

必選

說明

Authorization

Bearer

路徑參數

參數

類型

必選

說明

session_id

string

Session ID(sess_ 首碼)

樣本請求

curl -X DELETE "https://api.qoder.com.cn/api/v1/cloud/sessions/sess_019e3bb1e8c171fd9abbb1477ffb84cc" \
  -H "Authorization: Bearer $QODER_PAT"

樣本響應

HTTP 200 OK

{
  "id": "sess_019e3bb1e8c171fd9abbb1477ffb84cc",
  "type": "session",
  "deleted": true
}

響應欄位

欄位

類型

說明

id

string

已刪除的 Session ID

type

string

固定值 "session"

deleted

boolean

固定值 true,表示刪除成功

錯誤碼

HTTP

type

觸發條件

401

authentication_error

PAT 無效或到期

404

not_found_error

Session 不存在

完整錯誤信封說明詳見 錯誤參考