POST
/
v1
/
rag42
/
collections
/
{collection_id}
/
documents
/
{document_id}
/
chunks
청크 생성
curl --request POST \
  --url https://api.clovastudio.go.kr/v1/rag42/collections/{collection_id}/documents/{document_id}/chunks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "새로운 청크 제목",
  "content": "새로운 청크의 내용입니다. 여기에 텍스트를 입력합니다."
}'
{
  "status": {
    "code": "20000",
    "message": "OK"
  },
  "result": {
    "chunk_id": "a1b2c3d4e5f6789012345678901234ab",
    "title": "새로운 청크 제목",
    "content": "새로운 청크의 내용입니다.",
    "order": 1,
    "metadata": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

CSG-TENANT-ID
string | null

Clova Studio Gov 테넌트 ID

X-CSG-TENANT-ID
string | null

Clova Studio Gov 테넌트 ID (레거시)

Path Parameters

collection_id
string
required

컬렉션 ID (프로젝트 ID)

Examples:

"ef7483af16d84818a59dcbcf8b587b93"

document_id
string
required

문서 ID

Examples:

"ed5754eec78e4e0783ce075549ccadaa"

Body

application/json

청크 생성 요청

title
string
required

청크 제목

Maximum length: 1000
content
string
required

청크 내용

Maximum length: 50000

Response

청크 생성 성공

청크 생성 응답 (조회/수정과 동일한 구조)

status
object
required

응답 상태

result
object
required

생성된 청크 정보