Skip to main content
POST
Upsert a document in a data source

Authorizations

Authorization
string
header
required

Your DUST API key is a Bearer token.

Path Parameters

wId
string
required

ID of the workspace

spaceId
string
required

ID of the space

dsId
string
required

ID of the data source

documentId
string
required

ID of the document

Body

application/json
title
string

The title of the document to upsert.

mime_type
string

The MIME type of the document to upsert.

text
string

The text content of the document to upsert.

section
object

A section of a document that can contain nested sections

source_url
string

The source URL for the document to upsert.

tags
string[]

Tags to associate with the document.

timestamp
number

Unix timestamp (in milliseconds) for the document (e.g. 1736365559000).

light_document_output
boolean

If true, a lightweight version of the document will be returned in the response (excluding the text, chunks and vectors). Defaults to false.

async
boolean

If true, the upsert operation will be performed asynchronously.

upsert_context
object

Additional context for the upsert operation.

Response

The document

document
object
data_source
object