Skip to content

POST /api/models/sync ​

请求 ​

项内容
方法POST
路径/api/models/sync
鉴权管理员

Header 参数 ​

参数位置类型必填说明
AuthorizationHeaderstring是Bearer <jwt>。
Content-TypeHeaderstring是application/json。

Path 参数 ​

无。

Query 参数 ​

无。

Body 参数 ​

同步选项。

返回值 ​

同步结果。

返回字段 ​

字段类型说明
resultsarray同步结果数组。
results[].channel_idnumber上级渠道 ID。
results[].channel_namestring上级渠道名称。
results[].sourcestring同步来源。
results[].creatednumber新增数量。
results[].updatednumber更新数量。
results[].errorstring该渠道同步错误。

错误 ​

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

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