PUT
/
documents
/
v1
/
datasets
/
{dataset_name}
curl --request PUT \
  --url https://api.tensorlake.ai/documents/v1/datasets/{dataset_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "name": "<string>",
  "settings": null
}'
{
  "analytics": {
    "totalErrorJobs": 1,
    "totalJobs": 1,
    "totalPendingJobs": 1,
    "totalProcessingJobs": 1,
    "totalSuccessfulJobs": 1
  },
  "createdAt": "<string>",
  "description": "<string>",
  "id": "<string>",
  "jobs": {
    "hasMore": true,
    "items": [
      {
        "createdAt": "<string>",
        "datasetId": "<string>",
        "errorMessage": "<string>",
        "fileId": "<string>",
        "fileName": "<string>",
        "id": "<string>",
        "outputsUrl": "<string>",
        "status": "failure",
        "updatedAt": "<string>"
      }
    ],
    "nextCursor": "<string>",
    "prevCursor": "<string>"
  },
  "name": "<string>",
  "settings": {
    "chunkStrategy": null,
    "deliverWebhook": "false",
    "detectSignature": "false",
    "detectStrikethrough": "false",
    "disableLayoutDetection": "false",
    "figureSummarization": true,
    "figureSummarizationPrompt": "none",
    "formDetectionMode": "vlm",
    "jsonSchema": "<any>",
    "modelProvider": null,
    "skewCorrection": "false",
    "structuredExtractionPrompt": "none",
    "structuredExtractionSkipOcr": "false",
    "tableOutputMode": "json",
    "tableParsingMode": "tsr",
    "tableSummarization": true,
    "tableSummarizationPrompt": "none"
  },
  "status": "idle"
}

Change the settings or metadata for a dataset. Dataset’s settings changes are not retroactive. The changes will only apply to new document parsing or structured extraction executions.

The unique name constraint is still enforced. If you change the name of the dataset, the new name must be unique within your organization.

Authorizations

Authorization
string
header
required

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

Path Parameters

dataset_name
string
required

Body

application/json

Response

200
application/json
Get a dataset

The response is of type object.