知识发布
更新时间:2024-11-04
1、接口地址:POST {IP}:{PORT}/open/v{versionId}/publish/knowledge
2、入参(需生成json字符串,放到请求的body中)
参数名 | 类型 | 是否可空 | 备注 |
---|---|---|---|
category | string | 否 | 逗号分割的字符串。全部则是all 可选值为entity【实体】,intent【意图】faq【faq】chitchat【闲聊】t 。样例比如:{"category":"faq,chitchat"} |
3、返回值
参数名 | 类型 | 父节点 | 备注 |
---|---|---|---|
code | int | HTTP状态码 | |
time | long | 时间 | |
msg | string | 状态信息 | |
data | T | ||
id | string | data | id |
botId | string | data | botId |
status | string | data | 状态 |
msg | string | data | 标准问id |
createUserId | string | data | 创建者id |
createUserName | string | data | 创建者名称 |
示例:
Plain Text
1{
2 "time":1590391112518,
3 "data":{
4 "id":"0eca8312bb6a4383a3c50c519933cb4f",
5 "botId":"b68fb02b-584b-4501-bc45-a4af53e0099d",
6 "status":"CREATE",
7 "msg":"task is created",
8 "createUserId":"32500597715",
9 "createUserName":"aicp"
10 },
11 "code":200,
12 "msg":"OK"
13}