路由:DELETE /api/option/channel_affinity_cache
注册处理器:github.com/QuantumNous/new-api/controller.ClearChannelAffinityCache。
消费方:web_vue。
鉴权:Root。需要 Root 用户。权限不足时服务端返回 403。
字段状态:controller-confirmed。字段为动态上游数据或回调负载时,文档会明确标记,不能补造 Schema。
页面/功能:Root 设置页按规则或全部清理渠道亲和缓存。
前端传参:query all=true 清理全部,或 rule_name= 清理单规则;两者都缺失时后端返回 400。
前端展示:删除数量。
调试:使用本操作的 x-debug 里的占位符;示例不含真实密码、API Key、签名、Cookie 或 Provider 密钥。
Authorization: Bearer ********************curl --location --request DELETE 'http://api-dev.opensosen.cn/api/option/channel_affinity_cache?all=undefined&rule_name=undefined' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "",
"data": {
"deleted": 4
}
}