PUT /api/channel/github.com/QuantumNous/new-api/controller.UpdateChannel。web_vue。controller-confirmed-channel。字段为动态上游数据或回调负载时,文档会明确标记,不能补造 Schema。x-debug 里的占位符;示例不含真实密码、API Key、签名、Cookie 或 Provider 密钥。Authorization: Bearer ********************{
"id": 12,
"name": "debug-openai-updated",
"models": "gpt-example,gpt-example-mini",
"group": "default",
"priority": 0,
"key_mode": "replace"
}curl --location --request PUT 'http://api-dev.opensosen.cn/api/channel/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 12,
"name": "debug-openai-updated",
"models": "gpt-example,gpt-example-mini",
"group": "default",
"priority": 0,
"key_mode": "replace"
}'{
"success": true,
"message": "",
"data": {
"id": 12,
"type": 1,
"key": "",
"status": 1,
"name": "debug-openai-updated",
"created_time": 1786650000,
"test_time": 0,
"response_time": 0,
"balance": 12.34,
"balance_updated_time": 1786650000,
"models": "gpt-example,gpt-example-mini",
"group": "default",
"used_quota": 0,
"other_info": "{}",
"channel_info": {
"is_multi_key": false,
"multi_key_size": 0,
"multi_key_status_list": {},
"multi_key_polling_index": 0,
"multi_key_mode": ""
},
"settings": "{}"
}
}