删除 Session

更新时间:
复制为 MD 格式

永久删除一个 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 不存在

完整错误信封说明详见 错误参考