- OpenAPI
- Assistant
- Knowledge
- Flow
- Workflow
Update QA
POST
/api/v2/filelib/update_qa
请求参数
Body 参数application/json
id
integer
必需
question
string
可选
answer
array[string]
替换答案
示例
{
"id": 12625,
"question": "hhhh",
"answer": [
"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 'http://192.168.50.15:7860/api/v2/filelib/update_qa' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 12625,
"question": "hhhh",
"answer": [
"string"
]
}'
返回响应
🟢200成功
application/json
Body
status_code
integer
必需
status_message
string
必需
data
null
必需
示例
{
"status_code": 200,
"status_message": "SUCCESS",
"data": null
}
修改于 2025-02-20 09:27:04