api/knowledge/pipeline/update 修改 实验版本 配置
完成“签名鉴权方式”页面的注册账号、实名认证、AK/SK 密钥获取和签名获取后,可调用 API 接口实现更新 实验版本 信息的功能。
URI | /api/knowledge/pipeline/update | 统一资源标识符 |
|---|---|---|
请求方法 | POST | 客户端对向量数据库服务器请求的操作类型 |
请求头 | Content-Type: application/json | 请求消息类型 |
Authorization: token=********** | 鉴权 |
参数 | 类型 | 必选 | 默认值 | 备注 |
|---|---|---|---|---|
collection_name | string | 否 | -- | 知识库名称 |
project | string | 否 | default | 项目名 |
resource_id | string | 否 | -- | 知识库唯一 id |
name | string | 是 | -- | 实验版本名称
|
cpu_quota | int | 否 | -- | cpu 配额 |
auto_sync_doc | bool | 否 | -- | 是否自动同步新增文档 |
pipeline_strategy_sync_type | string | 否 | -- | 同步策略选择
|
vlm_prompt | string | 否 | -- | 视频切片规则,字数不超过 5000,且必须包含 start_time、end_time 及格式说明,否则会造成视频分段失败。
|
参数 | 参数说明 |
|---|---|
code | 状态码 |
message | 返回信息 |
状态码 | http状态码 | 返回信息 | 状态码说明 |
|---|---|---|---|
0 | 200 | success | 成功 |
1000001 | 403 | unauthorized | 鉴权失败 |
1000002 | 403 | no permission | 权限不足 |
1000003 | 400 | invalid request:%s | 非法参数
|
1709905 | 400 | A parameter specified in the request is not valid: %s | 请求参数异常 |
1709900 | 500 | Service has some internal Error. Pls Contact With Admin. %s | 内部异常 |
curl -i -X POST \ -H 'Content-Type: application/json' \ -H 'Authorization: token=****' \ https://api-knowledgebase.mlp.cn-beijing.volces.com/api/knowledge/pipeline/update \ -d '{ "collection_name": "test_collection_name", "project": "default", "name": "custom_pipeline_01", "cpu_quota": 2, "auto_sync_doc": true }'
执行成功返回:
HTTP/1.1 200 OK Content-Length: 78 Content-Type: application/json {"code":0,"message":"success","request_id":"021695029537650fd001de666660000000000000000000230da93"}
执行失败返回:
HTTP/1.1 400 Bad Request Content-Length: 120 Content-Type: application/json { "code": 1000003, "message": "invalid request: cannot update default pipeline", "request_id": "021695029757920fd001de6666600000000000000000002569b8f" }