添加知识
POST
/knowledge请求参数
Header 参数
Authorization
string
必需
/open/auth/token接口获取的Bearer类型的token
示例值:
Bearer 0cb972b0-516c-8c7a-8c95-955263eed4c1
Body 参数application/json
rules
array[string]
必需
imtypes
array[string]
可选
groups
array[string]
可选
type
string
text、url
content
string
必需
request
object
可选
url
string
必需
method
string
必需
body
string
可选
headers
array[string]
可选
location
boolean
可选
response_type
string
可选
image、json、template
get
string
可选
取回复信息中的某个字段
regex
string
正则
template
string
模版
disappear
boolean
可选
replace
array [array]
可选
string
可选
示例
{
"rules": [
"string"
],
"imtypes": [
"string"
],
"groups": [
"string"
],
"type": "string",
"content": "string",
"request": {
"url": "string",
"method": "string",
"body": "string",
"headers": [
"string"
],
"location": true,
"response_type": "string",
"get": "string",
"regex": "string",
"template": "string",
"disappear": true
},
"replace": [
[
"string"
]
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: a year ago