PATCH
/
v1
/
rag42
/
collections
/
{collection_id}
/
documents
/
{document_id}
/
chunks
/
{chunk_id}
curl --request PATCH \
--url https://api.clovastudio.go.kr/v1/rag42/collections/{collection_id}/documents/{document_id}/chunks/{chunk_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "수정된 청크 제목"
}'
{
  "status": {
    "code": "20000",
    "message": "OK"
  },
  "result": {
    "chunk_id": "a1b2c3d4e5f6789012345678901234ab",
    "title": "수정된 청크 제목",
    "content": "수정된 청크 내용입니다.",
    "order": 3,
    "metadata": {
      "start_page": 1,
      "end_page": 1
    },
    "updated_at": "2024-10-21T12:00:00Z",
    "operation": "update_chunk"
  }
}

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"

chunk_id
string
required

청크 ID

Examples:

"a1b2c3d4e5f6789012345678901234ab"

Body

application/json

청크 수정 요청 (title과 content만 수정 가능)

title
string | null

청크 제목

Maximum length: 1000
content
string | null

청크 내용

Maximum length: 50000

Response

청크 수정 성공

청크 수정 응답

status
object
required

응답 상태

result
object
required

청크 수정 결과