Update a data feed's schema
Defines or replaces the column schema for a data feed. Each field must have a name (the CSV column header) and a value_type (string, number, or boolean). The submitted list replaces the whole schema, so send every column. An omitted schema_fields counts as an empty list: it clears the schema and creates a new version of the feed. If the submitted schema and header row match the current ones, the call succeeds as a no-op.
A data feed is not ready to accept data until a schema is defined; an empty schema counts as defined. Requires the read:project and write:data_feed token scopes.
Authorizations
Path Parameters
The project's friendly ID (e.g. prj_aBcD1234eFgH5678).
The data feed's friendly ID (e.g. datafd_aBcD1234eFgH5678).
Body
Response
Schema updated. 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"