Skip to content

PUT /api/user-channels/:id

请求

内容
方法PUT
路径/api/user-channels/:id
鉴权管理员

Header 参数

参数位置类型必填说明
AuthorizationHeaderstringBearer <jwt>
Content-TypeHeaderstringapplication/json

Path 参数

参数位置类型必填说明
idPathstring路径参数 id

Query 参数

无。

Body 参数

参数位置类型必填说明
nameBodystring名称。
routing_algorithmBodystring路由算法。
enabledBodyboolean是否启用。

返回值

更新后的用户渠道。

返回字段

字段类型说明
idnumber用户可见渠道 ID。
namestring渠道名称。
descriptionstring渠道描述。
multiplierstring/number用户渠道倍率。
routing_algorithmstring路由算法:priority、round_robin、weighted_round_robin。
enabledboolean是否启用。
channelsarray关联上级渠道数组,管理端列表会预加载。
created_atstring创建时间。
updated_atstring更新时间。

错误

状态码说明
400参数不合法。
401未登录或登录失效。
403无权限。
404资源不存在。
500服务端错误。

基于 MIT 协议发布(社区版)