Channel
put/api/channel/

Request

  • Base URL
    https://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

PatchChannel required
auto_ban, integer nullable required
balance, number double required
balance_detail, ChannelBalanceDetail
balance_updated_time, integer required
base_url, string nullable required
channel_info, ChannelInfo 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

ResponseControllerPatchChannel required

Response_controller.PatchChannel schema

data, PatchChannel required
message, string required
success, boolean required

Changes

    • info

      added the new optional request property balance_detail

    • info

      added the optional property data/balance_detail to the response with the status (media type: application/json)

    • info

      added the optional property data/balance_detail to the response with the status (media type: application/xml)