Create Source Connection
Create a new source connection.
This endpoint creates:
- An integration credential with the provided auth fields
- A collection if not provided
- The source connection
- A sync configuration and DAG
- A sync job if immediate execution is requested
Args: db: The database session source_connection_in: The source connection to create user: The current user background_tasks: Background tasks for async operations
Returns: The created source connection
Headers
x-api-key
Request
This endpoint expects an object.
name
Name of the source connection
short_name
description
config_fields
Config values model.
Implements “flat dictionary” semantics, where no values are dictionaries.
collection
cron_schedule
auth_fields
Config values model.
Implements “flat dictionary” semantics, where no values are dictionaries.
sync_immediately
Response
Successful Response
name
Name of the source connection
short_name
id
organization_id
created_at
modified_at
collection
created_by_email
modified_by_email
description
config_fields
Config values model.
Implements “flat dictionary” semantics, where no values are dictionaries.
sync_id
connection_id
auth_fields
status
Source connection status enum.
Allowed values:
latest_sync_job_status
Sync job status enum.
Allowed values:
latest_sync_job_id
latest_sync_job_started_at
latest_sync_job_completed_at
cron_schedule
next_scheduled_run