POST
/
connectors
/
datasources
Create a datasource
curl --request POST \
  --url https://{FUSION HOST}/api/connectors/datasources \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "test-data-source",
  "parserId": "api-test-app",
  "connector": "lucid.fileupload",
  "type": "fileupload",
  "pipeline": "api-test-app",
  "properties": {
    "fileId": "pokedex.json.zip",
    "description": "My test datasource"
  }
}'
{
  "id": "test-data-source",
  "created": "2024-08-02T21:00:42.165Z",
  "modified": "2024-08-02T21:00:42.165Z",
  "connector": "lucid.fileupload",
  "type": "fileupload",
  "pipeline": "api-test-app",
  "parserId": "api-test-app",
  "properties": {
    "description": "My test datasource",
    "fileId": "pokedex.json.zip",
    "mediaType": "application/octet-stream"
  }
}

Query Parameters

validateOnly
boolean
default:false

Indicates if the configuration should be created (persisted) or just validated.

context
string

The context of resource. It usually is the app inside which the resource is created.

Body

application/json · object

Response

201 - application/json

Created

The response is of type object.