Upsert a document in a data source

Upsert a document in a data source in the workspace identified by {wId}.

Path Params
string
required

ID of the workspace

string
required

ID of the space

string
required

ID of the data source

string
required

ID of the document

Body Params
string

The title of the document to upsert.

string

The MIME type of the document to upsert.

string

The text content of the document to upsert.

section
object

A section of a document that can contain nested sections

string

The source URL for the document to upsert.

tags
array of strings

Tags to associate with the document.

tags
number

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

boolean

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

boolean

If true, the upsert operation will be performed asynchronously.

upsert_context
object

Additional context for the upsert operation.

Responses

400

Bad Request. Missing or invalid parameters.

401

Unauthorized. Invalid or missing authentication token.

403

Forbidden. The data source is managed.

404

Data source or document not found.

405

Method not supported.

429

Rate limit exceeded.

500

Internal Server Error.

Language
Credentials
Bearer
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json