跳转到主要内容
POST
/
conversations
/
delete
curl -X POST "http://localhost:5001/conversations/delete" \
  -H "Content-Type: application/json" \
  -d '{
    "uid": "user123",
    "channel_id": "group123",
    "channel_type": 2
  }'
{
  "status": "success"
}

概述

删除指定用户的会话记录,清除会话历史和状态。

请求体

uid
string
required
用户 ID
channel_id
string
required
频道 ID
channel_type
integer
required
频道类型 (1=个人频道, 2=群组频道)
curl -X POST "http://localhost:5001/conversations/delete" \
  -H "Content-Type: application/json" \
  -d '{
    "uid": "user123",
    "channel_id": "group123",
    "channel_type": 2
  }'
{
  "status": "success"
}

响应字段

status
string
required
操作状态,成功时返回 “success”

状态码

状态码说明
200会话删除成功
400请求参数错误
403没有删除权限
500服务器内部错误