- autMan开放接口
- 系统管理
- 本地开发
- 用户管理
- 容器管理
- 虚拟容器
- 对接容器
- 变量整理
- COOKIE
- 洞察变量
- 链接解析
- 脚本容器
- 代理池
- aut云插件
添加知识
POST
/knowledge
请求参数
Header 参数
Authorization
string
必需
示例值:
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
可选
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"
]
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/knowledge' \
--header 'Authorization: Bearer 0cb972b0-516c-8c7a-8c95-955263eed4c1' \
--header 'Content-Type: application/json' \
--data-raw '{
"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成功
application/json
Body
object {0}
示例
{}