POST
/
api
/
dataset
/
batch_create_datasets

Authorizations

Authorization
string
headerrequired

Headers

TR-Organization
string
required

The organization id to use for the request

Body

application/json
datasets
object[]
required

List of datasets to create

upsert
boolean | null

Upsert when a dataset with one of the specified tracking_ids already exists. By default this is false and specified datasets with a tracking_id that already exists in the org will not be ignored. If true, the existing dataset will be updated with the new dataset's details.

Response

200 - application/json
created_at
string
required

Timestamp of the creation of the dataset

deleted
integer
required

Flag to indicate if the dataset has been deleted. Deletes are handled async after the flag is set so as to avoid expensive search index compaction.

id
string
required

Unique identifier of the dataset, auto-generated uuid created by Trieve

name
string
required

Name of the dataset

organization_id
string
required

Unique identifier of the organization that owns the dataset

server_configuration
any
required

Configuration of the dataset for RAG, embeddings, BM25, etc.

tracking_id
string | null

Tracking ID of the dataset, can be any string, determined by the user. Tracking ID's are unique identifiers for datasets within an organization. They are designed to match the unique identifier of the dataset in the user's system.

updated_at
string
required

Timestamp of the last update of the dataset