Skip to main content
PUT
Update a document

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Path Parameters

datasetId
string
required

ID of the dataset.

documentId
string
required

ID of the document.

Body

application/json

Request to update document metadata

name
string | null

Renamed filename

chunkMethod
string | null

Chunking method identifier

parserConfig
object

Configuration options for dataset document parsing

enabled
integer<int32> | null

Whether the document is enabled (1 = enabled, 0 = disabled)

Response

Document updated successfully

Public representation of a document

id
string

Document identifier

name
string

Original filename

size
integer<int64> | null

File size in bytes

status
string | null

Parsing status

chunkMethod
string | null

Chunking method used

createdAt
string<date-time> | null

Upload timestamp