Channel
Update Channel
Changed onput/api/channel/
Request
- Base URLhttps://api.unorouter.com (the document declares no server; this is the origin it was published from)
- Auth
- API key in header Authorization and API key in header New-Api-User
- or API key in header New-Api-User and API key in cookie session
Request body
Patch Channel required
auto_ban, integer nullable required
balance, number double required
balance_detail, Channel Balance Detail
balance_updated_time, integer required
base_url, string nullable required
channel_info, Channel Info required
created_time, integer required
group, string required
header_override, string nullable required
id, integer required
key, string required
key_mode, string nullable required
model_mapping, string nullable required
models, string required
multi_key_mode, string nullable required
name, string required
openai_organization, string nullable required
other, string required
other_info, string required
param_override, string nullable required
priority, integer nullable required
remark, string nullable required
response_time, integer required
setting, string nullable required
settings, string required
status, integer required
status_code_mapping, string nullable required
tag, string nullable required
test_model, string nullable required
test_time, integer required
type, integer required
used_quota, integer required
weight, integer nullable required
workflow_templates, string nullable required
Response
OK
Response Controller Patch Channel required
Response_controller.PatchChannel schema
data, Patch Channel required
message, string required
success, boolean required
Changes
- info
added the new optional request property
balance_detail - info
added the optional property
data/balance_detailto the response with the status (media type: application/json) - info
added the optional property
data/balance_detailto the response with the status (media type: application/xml)
- info