Attach a data source to a data feed
Attaches a new data source to a data feed. Each data feed can have at most one source per source_type. Returns the updated data feed including all attached sources.
Settings are validated on save; see config in the request body for the keys each source_type takes. Validation does not connect to the database or endpoint, so a wrong host, query or secret surfaces on the first run. api sources require HTTP API sources to be enabled for your account; otherwise returns 422 “Source type HTTP API is not enabled for this account”. Contact Mangrove to enable them. Requires the write:data_feed token scope.
Authorizations
Path Parameters
The data feed's friendly ID (e.g. datafd_aBcD1234eFgH5678).
Body
Response
Source successfully attached. Returns the updated data feed.
A data feed. List rows omit each transformation's script_content and each source's config; single-feed responses include them.
The data feed's friendly ID.
"datafd_aBcD1234eFgH5678"
"Daily Production Data"
"Imports daily production metrics"
Row number (1-based) containing column headers. Rows above are ignored during ingestion. 1 until a schema sets another value.
1
Why automatic setup could not build the schema (for example an unreadable sample file), or null.
Why the feed cannot accept data yet, or null when it is ready. A new feed reports "Transformation scripts are still being generated" until its scripts are drafted, and "Schema not defined" until a schema exists.
null
The columns of the current schema. Empty until a schema is defined.
The event types the feed's active transformations create.
Active (unarchived) transformations, one per event type.
Link to the data feed's page in the app.
"https://app.gomangrove.com/nexus/prj_aBcD1234eFgH5678/data-inputs/data-feeds/datafd_aBcD1234eFgH5678"