删除当前用户
OpenAPI 契约
- 方法
- DELETE
- 路径
/api/v1/user/me- 认证
- jwtBearer (bearer)
- 响应状态
- 204 400 401 403 429 500
请求与响应 Schema
JSON
{
"requestBody": {},
"responses": {
"204": {
"description": "Account deleted",
"content": {}
},
"400": {
"description": "Invalid request",
"content": {
"application/json": {
"$ref": "#/components/schemas/RequestError"
}
}
},
"401": {
"description": "Authentication required or invalid",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"403": {
"description": "Authenticated but not permitted",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"429": {
"description": "Rate limit exceeded",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"500": {
"description": "Unexpected server error",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}DELETE /api/v1/user/me 仅限 JWT,且没有请求体。它会撤销账户会话,删除其已存储的构建文件、编译任务、项目、处理器预设和用户记录。该操作没有响应体。
nfy_ 自动化密钥不能删除账户。如需保留数据,请先导出,因为此操作会删除已存储的账户内容。缺少或无效的 JWT 认证会被拒绝。
http
DELETE /api/v1/user/me
Authorization: Bearer <access token>