删除会话
curl --request DELETE \
--url http://localhost:8000/apps/{app_name}/users/{user_id}/sessions/{session_id}import requests
url = "http://localhost:8000/apps/{app_name}/users/{user_id}/sessions/{session_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('http://localhost:8000/apps/{app_name}/users/{user_id}/sessions/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));null{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}会话
删除会话
删除指定应用和用户的会话,成功返回 JSON null
DELETE
/
apps
/
{app_name}
/
users
/
{user_id}
/
sessions
/
{session_id}
删除会话
curl --request DELETE \
--url http://localhost:8000/apps/{app_name}/users/{user_id}/sessions/{session_id}import requests
url = "http://localhost:8000/apps/{app_name}/users/{user_id}/sessions/{session_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('http://localhost:8000/apps/{app_name}/users/{user_id}/sessions/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));null{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}最后修改于 2026年9月19日