POST
/
{resourceSlug}
/
forms
/
datasource
/
test

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

req.json
connectorId
string

The type of datasource being pulled from, the full list of supported sources and their corresponding in JSON format can be found at: 'https://connectors.airbyte.com/files/generated_reports/connector_registry_report.json'. One of these connectors must be selected as the type of datasource to pull from. Insert the Id of the connector in this field

datasourceName
string

Arbitary name for the datasource, this doesn't need to follow any specific convention, can simply be any name to identify it.

datasourceDescription
string

Description for the datasource, this is used when fetching the datasources on 'datasourcesJson' to briefly describe what each datasource is from/contains.

sourceConfig
any

sourceConfig is defined by Airbyte to determine the config required to set up the datasource with Airbyte. See the docs at: 'https://reference.airbyte.com/reference/createsource' for more information. See the 'configuration' body params and find the source that you are using.

timeUnit
enum<string>

Used to indicate howoften the datasource is synced, this syncing is to ensure the data within Agent Cloud is synchronised with the data within the datasource. This is the period between each synchronisation. The specific number of each period is set later in the addition process (i.e. when using addDatasourceApi).

Available options:
minute,
hour,
day,
week,
month

Response

200 - dynamicResponse
message
string

Error message to provide more detail

code
integer

the error code

discoveredSchema
object

This return is mainly used for front end operations of Agent Cloud, it is an Airbyte object found here: 'https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#post-/v1/sources/discover_schema'

streamProperties
object

This is an Airbyte object used to describe the stream between the datasource and Agent Cloud, it holds the properties of it, more information can be found on the Airbyte Reference here: 'https://reference.airbyte.com/reference/getstreamproperties'

sourceId
string

When Airbyte creates the new source it creates a unique UUID for it for within Airbyte, this UUID is returned form Airbyte and also returned from this API call.