Skip to main content

Datacomponents

Datacomponents hold configuration for dataplugins, and are the building blocks for constructing pipelines. One dataplugin may be referenced by many datacomponents, each with a different set of properties for the dataplugin settings. One pipeline may reference multiple datacomponents.


Objects​

Datacomponent​

PathJSON TypeFormatDescription
idstringVersion 4 UUIDThe datacomponent ID
createdstringISO 8601 timestampWhen the datacomponent was created
lastModifiedstringISO 8601 timestampWhen the datacomponent was last modified
namestringThe datacomponent name
dataPluginstringCreate / update with dataplugin fullyQualifiedName
propertiesobjectPropertiesThe datacomponent properties, defined by the dataplugin settings
Properties are key-value pairs, where keys reference setting names
Example response body

Extractor Datacomponent​

Datacomponents that are backed by dataplugins of type EXTRACTOR expose the following additional configuration:

PathJSON TypeFormatDescription
streamsobject[]Array of StreamsThe available streams (populated after verifying a pipeline that references this datacomponent)

Properties​

For each setting in the dataplugin settings:

PathJSON TypeFormatDescription
Refer to setting nameRefer to setting kindRefer to setting kindRefer to setting description

Reserved Properties for Extractor Datacomponents​

PathJSON TypeFormatDescription
_selectstringJSON arrayMeltano stream and property selection rules
_metadatastringJSON objectMeltano stream and property metadata rules

Stream​

PathJSON TypeFormatDescription
namestringThe stream name
selectedstringEntity SelectionThe stream entity selection type
fieldsobject[]Array of FieldsThe available stream fields

Field​

PathJSON TypeFormatDescription
namestringThe field name
selectedstringEntity SelectionThe field entity selection type

Formats​

Entity Selection​

ValueDescription
AUTOMATICThe entity is automatically selected by the underlying extractor and will always be synced
SELECTEDThe entity is selected and will be synced
EXCLUDEDThe entity is excluded and will not be synced

Requests​

View all datacomponents in a workspace​

GET /api/workspaces/{workspace-id}/datacomponents

Returns all datacomponents in the workspace {workspace-id}.

Prerequisites​

  • Workspace {workspace-id} must exist
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/7d4af0a7-b482-4b12-b40e-e956cd2c9d9d/datacomponents' -i -X GET

Response​

200 OK

Datacomponent collection with HAL links.

Example response body

View a datacomponent​

GET /api/datacomponents/{datacomponent-id}

Returns the datacomponent {datacomponent-id}.

Prerequisites​

  • Datacomponent {datacomponent-id} must exist
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datacomponents/e3af6bd4-9082-4e68-bf3e-75c5c4e0154e' -i -X GET

Response​

200 OK

Datacomponent with HAL links.

Example response body

Initialise a new datacomponent in a workspace​

POST /api/workspaces/{workspace-id}/datacomponents

Initialises a new datacomponent in the workspace {workspace-id}.

Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/7d4af0a7-b482-4b12-b40e-e956cd2c9d9d/datacomponents' -i -X POST \
-H 'Content-Type: application/json'

Response​

200 OK

datacomponent with HAL links.

Example response body

Create or update a datacomponent in a workspace​

PUT /api/workspaces/{workspace-id}/datacomponents/{datacomponent-id}

Creates or updates the datacomponent {datacomponent-id} in the workspace {workspace-id}.

Body​

Datacomponent resource.

{
"name" : "extractors/tap-matatika-sit",
"dataPlugin" : "extractors/tap-matatika-sit"
}
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/workspaces/7d4af0a7-b482-4b12-b40e-e956cd2c9d9d/datacomponents/e3af6bd4-9082-4e68-bf3e-75c5c4e0154e' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "extractors/tap-matatika-sit",
"dataPlugin" : "extractors/tap-matatika-sit"
}'

Response​

200 OK / 201 Created

Datacomponent with HAL links.

Example response body

Update a datacomponent​

PUT /api/datacomponents/{datacomponent-id}

Updates the datacomponent {datacomponent-id}.

Prerequisites​

  • Datacomponent {datacomponent-id} must exist

Body​

Datacomponent resource.

{
"name" : "extractors/tap-matatika-sit",
"dataPlugin" : "extractors/tap-matatika-sit"
}
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datacomponents/e3af6bd4-9082-4e68-bf3e-75c5c4e0154e' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "extractors/tap-matatika-sit",
"dataPlugin" : "extractors/tap-matatika-sit"
}'

Response​

200 OK

Datacomponent with HAL links.

Example response body

Delete a datacomponent​

DELETE /api/datacomponents/{datacomponent-id}

Deletes the datacomponent {datacomponent-id}.

Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.meltano.com:443/api/datacomponents/e3af6bd4-9082-4e68-bf3e-75c5c4e0154e' -i -X DELETE

Response​

204 No Content

No response body provided.