cURL
curl --request PUT \ --url https://api.starleads.co/Dataset/{datasetId}/document/{documentId} \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "name": "renamed-file.pdf", "chunkMethod": "manual", "parserConfig": { "chunkTokenNum": 128 }, "enabled": 1 } '
{ "id": "<string>", "name": "<string>", "size": 123, "status": "<string>", "chunkMethod": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Updates document metadata such as name, chunking method, parser configuration, and enabled status.
Api key to pass as a X-Api-Key request header.
X-Api-Key
ID of the dataset.
ID of the document.
Request to update document metadata
Renamed filename
Chunking method identifier
Configuration options for dataset document parsing
Show child attributes
Whether the document is enabled (1 = enabled, 0 = disabled)
Document updated successfully
Public representation of a document
Document identifier
Original filename
File size in bytes
Parsing status
Chunking method used
Upload timestamp