지식 베이스
Update knowledge base
Add files to a knowledge base. Call the file upload endpoint first to obtain the file path; knowledge_code is returned by the create knowledge base endpoint.
POST
/openapi/knowledge/update요청
매개변수
Authorizationstring필수헤더
요청 본문
knowledge_codestring필수
Knowledge base code
knowledge_namestring필수
Knowledge base name
filesobject[]필수
File list
[].filePathstring필수
Uploaded file path
[].dataRowNuminteger
Row where the body content starts
[].indexColumnNuminteger[]
List of columns to index
[].separatorstring
Separators (multiple values allowed, separated by spaces)
[].chunkSizeinteger
Maximum characters per chunk
응답
200 OK
필드 없음
샘플 코드
curl -X POST 'https://openapi.voicefox.ai/openapi/knowledge/update' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"knowledge_code": "string",
"knowledge_name": "string",
"files": [
{
"filePath": "string",
"dataRowNum": 0,
"indexColumnNum": [
0
],
"separator": "string",
"chunkSize": 0
}
]
}'응답 예시
{}