지식 베이스 문서 생성
knowledge base 안에 text, webpage, file document를 생성합니다. document는 즉시 반환되며 처리는 비동기로 진행됩니다.
Authorizations
조직 API 키를 Authorization: Bearer <token> 형식으로 보냅니다.
Path Parameters
GET /v3/knowledges에서 반환되는 숫자형 public knowledge ID입니다.
x >= 1Body
document 생성 요청입니다. text와 webpage document는 JSON을 사용하고, file 업로드는 multipart form data를 사용합니다.
- CreateTextDocumentRequest
- CreateWebpageDocumentRequest
text 타입 document 생성 요청 (application/json).
name 은 공백 제외 1~255자. 정의되지 않은 필드를 보내면 400 (extra=forbid).
Response
성공 응답
knowledge document 요약 응답입니다.
목록 조회와 생성 응답에서 공통으로 사용합니다.
knowledge document의 고유 식별자입니다.
상위 knowledge numeric public ID.
document 의 이름.
document 타입.
file, text, webpage document 처리 상태입니다. uploading에서 completed 또는 failed로 전이합니다.
uploading, completed, failed 리소스 생성 시각입니다. unix milliseconds 형식입니다.
업로드 진행률(%)입니다. status가 uploading일 때만 의미가 있습니다. 집계 전에는 null입니다.
0 <= x <= 100document 의 토큰 수. 처리 완료 전에는 null.
webpage document일 때만 값이 있습니다. 그 외에는 null입니다.