POST
/
{resourceSlug}
/
forms
/
datasource
/
add

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId

Body

datasource.json
_id
string

Unique identifier for the datasource.

orgId
string

Identifier of the organization to which the datasource belongs.

teamId
string

Identifier of the team to which the datasource belongs.

name
string
required

The name of the datasource.

description
string

Optional description of the datasource.

originalName
string
required

The original name of the datasource.

filename
string | null

The name of the file associated with the datasource, if applicable.

sourceType
string
required

The type of source for the datasource.

sourceId
string
required

The identifier of the data source.

destinationId
string
required

The identifier of the data destination.

workspaceId
string
required

The identifier of the workspace associated with the datasource.

connectionId
string
required

The identifier of the connection associated with the datasource.

recordCount
object

The record count details for the datasource, including total, successful, and failed records.

connectionSettings
object

Configuration settings for the datasource connection.

createdDate
string
required

The date and time when the datasource was created.

lastSyncedDate
string | null

The date and time when the datasource was last synced. Null indicates it has never been synced.

status
enum<string>

The current status of the datasource.

Available options:
draft,
processing,
embedding,
ready
discoveredSchema
object | null

Schema discovered during the data source connection. The structure depends on the source type.

chunkingConfig
object

Configuration settings for chunking unstructured data, including partitioning and chunking strategies, character limits, and similarity thresholds.

embeddingField
string

The field used for embedding within the datasource.

timeWeightField
string

The field used to apply time weighting within the datasource.

modelId
string

Identifier of the embedding model used, if applicable.

hidden
boolean

Indicates whether the datasource is hidden from standard views.

streamConfig
object

Configuration settings for processing streams of data, breaking them into smaller chunks for more manageable processing.

timeUnit
string

A temporary field to limit CRON frequency based on the plan. This will be replaced with a more robust solution in the future.

Response

302 - dynamicResponse
_id
string

The unique Mongo id of the newly inserted object.

redirect
string

a string containing the redirect link to get all objects after a successful insertion.