POST
/
{resourceSlug}
/
forms
/
datasource
/
test
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/datasource/test \
  --header 'Content-Type: req.json' \
  --data '{
  "connectorId": "<string>",
  "datasourceName": "<string>",
  "datasourceDescription": "<string>",
  "sourceConfig": "<any>",
  "timeUnit": "minute"
}'
{
  "message": "<string>",
  "code": 123,
  "discoveredSchema": {},
  "streamProperties": {},
  "sourceId": "<string>"
}

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

Task object to be added with at minimum all required fields, _id must be ommited, this will be generated by the api and returned upon successful completion.

Response

200
dynamicResponse

Successfully tested the datasource and validated it's configuration for Airbyte, can now move onto the addDatasourceApi route

Server response