AddKnowledgeTags - 增加知识库文档标签
增加知识库文档标签
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DBClusterId |
string |
是 |
数据库集群 ID。 |
am-bp19aaaaaa**** |
| FileLocation |
string |
是 |
知识库文档地址。 |
oss://bucketName/path/to/file.pdf |
| Tags |
string |
否 |
标签数组的 JSON 字符串。每组 tag 格式要满足 {"tag_key":"key_name","tag_value":"value"} |
[{"tag_key":"biz.scene","tag_value":"test"}] |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| Data |
object |
返回结果数据。 |
|
| FileLocation |
string |
知识库文件地址 |
oss://bucketName/path/to/file.pdf |
| Message |
string |
提示信息 |
1 tag skipped |
| Replaced |
integer |
成功修改 tag 的数量 |
1 |
| Skipped |
array<object> |
跳过的 tag 列表 |
|
|
object |
跳过的 tag 详情 |
||
| Reason |
string |
跳过的原因 |
conflict |
| TagKey |
string |
Tag 的 key 值 |
skipKey |
| TagValue |
string |
Tag 的 value 值 |
skipValue |
| Success |
boolean |
请求是否成功,取值说明:
|
true |
| Written |
integer |
成功新增 tag 的数量 |
2 |
| RequestId |
string |
Id of the request |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
示例
正常返回示例
JSON格式
{
"Data": {
"FileLocation": "oss://bucketName/path/to/file.pdf",
"Message": "1 tag skipped",
"Replaced": 1,
"Skipped": [
{
"Reason": "conflict",
"TagKey": "skipKey",
"TagValue": "skipValue"
}
],
"Success": true,
"Written": 2
},
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MDS.CatalogAlreadyExist | The catalog already exists. | 目录已经存在 |
| 400 | MDS.IllegalArgument | Invalid argument. | 用户使用了非法参数 |
| 400 | MDS.InvalidPrivilege | No permissions. | 用户无权限进行操作 |
| 400 | MDS.MetaSchemaAlreadyExist | The database already exists. | 数据库已存在 |
| 400 | MDS.MetaSchemaNotExist | The database does not exist. | 操作的数据库不存在 |
| 400 | MDS.MetaTableAlreadyExist | The table already exists. | 操作的表已经存在 |
| 400 | MDS.MetaTableNotExist | The table is not found. | 操作的表不存在 |
| 400 | MDS.SemanticViewAlreadyExist | The semantic view already exists. | 此语义视图已经存在 |
| 500 | MDS.InternalError | An internal MDS error occurred. | MDS服务内部错误 |
| 500 | MDS.MetaVisitError | Failed to access metadata. | 访问元数据失败 |
| 403 | MDS.RamAuthAccessDenied | ram auth access denied. | RAM鉴权失败 |
| 404 | MDS.InstanceNotExist | ADB instance does not exist. | ADB 实例不存在 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。