Skip to main content

Upsert Data Source

PUT 

/api/v1/data-sources

Upserts a data source. Updates if a data source with the same name and project_id already exists. Otherwise, creates a new data source.

Request

Query Parameters

    project_id any
    organization_id any

Cookie Parameters

    session any

Body

required

    name Name (string)required

    The name of the data source.

    source_type ConfigurableDataSourceNames (string)required

    Possible values: [S3, AZURE_STORAGE_BLOB, GOOGLE_DRIVE, MICROSOFT_ONEDRIVE, MICROSOFT_SHAREPOINT, SLACK, NOTION_PAGE, CONFLUENCE, JIRA, BOX]

    custom_metadata

    object

    Custom metadata that will be present on all data loaded from the data source

    anyOf

    component

    object

    required

    anyOf

    bucket Bucket (string)required

    The name of the S3 bucket to read from.

    prefix

    object

    The prefix of the S3 objects to read from.

    anyOf

    string

    aws_access_id

    object

    The AWS access ID to use for authentication.

    anyOf

    string

    aws_access_secret

    object

    The AWS access secret to use for authentication.

    anyOf

    string

    s3_endpoint_url

    object

    The S3 endpoint URL to use for authentication.

    anyOf

    string

    class_name Class Name (string)

    Default value: CloudS3DataSource

Responses

Successful Response

Schema

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    The name of the data source.

    source_type ConfigurableDataSourceNames (string)required

    Possible values: [S3, AZURE_STORAGE_BLOB, GOOGLE_DRIVE, MICROSOFT_ONEDRIVE, MICROSOFT_SHAREPOINT, SLACK, NOTION_PAGE, CONFLUENCE, JIRA, BOX]

    custom_metadata

    object

    Custom metadata that will be present on all data loaded from the data source

    anyOf

    component

    object

    required

    anyOf

    bucket Bucket (string)required

    The name of the S3 bucket to read from.

    prefix

    object

    The prefix of the S3 objects to read from.

    anyOf

    string

    aws_access_id

    object

    The AWS access ID to use for authentication.

    anyOf

    string

    aws_access_secret

    object

    The AWS access secret to use for authentication.

    anyOf

    string

    s3_endpoint_url

    object

    The S3 endpoint URL to use for authentication.

    anyOf

    string

    class_name Class Name (string)

    Default value: CloudS3DataSource

    project_id uuidrequired
Loading...