Streams
Read the streams of a configuration.
Retrieves the streams belonging to a configuration, ordered by seq.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe configuration identifier.
7c9e6679-7425-40de-944b-e07fc1f90ae7The request was successful. The streams are returned.
A stream that extracts from a source, maps fields, and upserts into an Emporix target type.
The stream identifier.
3fa85f64-5717-4562-b3fc-2c963f66afa6The parent configuration.
7c9e6679-7425-40de-944b-e07fc1f90ae7The stream name.
ProductsThe logical source entity or record.
PRODUCTWhere the stream writes. Possible values:
emporix.customEntity– instances of a custom entity type, named bytargetType.emporix.product– products, including parents and variants.STANDALONEstreams only.emporix.category– categories of the tenant's category tree.STANDALONEstreams only.emporix.price– prices of products.emporix.availability– stock of products at a site.emporix.media– images of products, linked by URL. The images stay where they are hosted.emporix.categoryAssignment– assignments of products to existing categories.
The price, availability, media, and category assignment writers are normally used by a FAN_OUT
stream whose parent is a product stream. The FAN_OUT stream supplies each product's identifier as
productId. A STANDALONE stream that uses them maps productId itself.
The writers other than emporix.customEntity are catalog writers. The Management Dashboard offers them
only to tenants for which Emporix has enabled catalog targets. To have them enabled, contact Emporix
support.
emporix.customEntityFor emporix.customEntity, the custom entity type the stream writes to. For the other writers, a label that groups the stream's imported records, for example in imported data and statistics. Defaults to PRODUCT for emporix.product and CATEGORY for emporix.category. For a FAN_OUT stream into a catalog writer, the service sets the label.
productThe stream's position in the configuration. Streams are listed in this order. When dependencies do not decide the run order, streams run in this order.
0How the stream contributes to the target. Possible values:
STANDALONE– reads its source and writes its own target objects.COMPOSITE_CHILD– reads its source and writes into the objects of the stream named incompositeParent.COMPOSITE_MERGE– reads its source and adds fields to the objects of the stream named incompositeParent.FAN_OUT– has no source of its own. It reads the records the stream named incompositeParentwrote in the same run, and writes further objects for each of them, for example a product's prices. It runs after that stream. Objects it created earlier for a record that no longer lists them are removed.
STANDALONEPossible values: FAN_OUT only. The array in the parent record whose elements each produce one target object, for example prices[]. When omitted, one target object is written per parent record.
prices[]FAN_OUT only. The element field that identifies an element of fanOutPath, for example currency, so that a target object keeps its identity when the elements change order. When omitted, a scalar element identifies itself and an object element is identified by its position.
currencyWhether the stream is a FAN_OUT stream with a parent. Derived from mode and compositeParent.
falseThe source field whose value is tracked as the delta watermark. A delta run extracts only the records whose value is newer than the last run's.
LASTCHANGEDATEHow the delta field's values are formatted, so they can be compared correctly.
DATEPossible values: For a COMPOSITE_CHILD, COMPOSITE_MERGE, or FAN_OUT stream, the name of the stream it contributes to or fans out from.
invoicesFor a composite child stream, the source field holding its parent's key.
INVOICE_IDFor a composite child stream, the parent attribute its records are embedded into.
lineItemsHow a composite child's records reach the parent object.
EMBEDPossible values: How an existing target object is updated. Possible values:
PATCH– changes only the mapped fields and keeps everything else.MERGE_PUT– reads the object, merges the mapped fields into it, and writes it back whole.REPLACE_PUT– replaces the whole object, so fields this import does not manage are cleared.
The values a stream can use depend on its target writer. The following values are available per writer, with the default listed first:
emporix.customEntity–PATCH,MERGE_PUT,REPLACE_PUT.emporix.productandemporix.category–PATCH.emporix.media–PATCH,REPLACE_PUT.emporix.price,emporix.availability, andemporix.categoryAssignment–REPLACE_PUT.
PATCHPossible values: A source field whose value routes each record to a different target type, as defined by discriminatorMap.
DOCUMENT_TYPEWhen the stream was created.
2024-05-01T09:00:00.000ZWhether the stream is active.
trueThe source connection this stream reads from, when it has its own. Omitted means the configuration's default connection is used. One configuration can therefore mix sources.
2b069ad4-ee40-4c1d-9151-898ad59bd88aFor a file-based source, what one file represents. SNAPSHOT: each file is the whole picture, so only the most recently arrived one is read, and the per-record content hash decides what is written. A record missing from a newer file is not deleted. INCREMENTAL: each file is a change set, so every queued file is read in order and a later file's values win. Defaults to SNAPSHOT.
SNAPSHOTPossible values: Whether the stream treats each file as a snapshot. true unless fileMode is INCREMENTAL.
trueFor an EMBED composite child, the source column its parent matches records by. Required for such a stream: without it the parent cannot find its children and writes an empty array.
INVOICE_IDWhether the delta field counts as content when deciding a record has changed. Off by default: a modified timestamp is metadata about a change, not content, and a source that restamps every row on reload would otherwise make every run rewrite the whole table. Turn it on only when the timestamp moving genuinely means the record is different.
falseWhether to refuse to start a run when a pinned mixin's current version has moved past the pinned one, before any record is read. Opt-in, and bypassed by triggering a run with force.
falseNames of streams that must run before this one, beyond the ordering a composite parent already implies. A product stream whose variantRole is VARIANT lists here the stream of the same configuration that imports its parent products, if there is one, so that the parents are written first.
The source field used as the instance's display name. Superseded by mapping a field to the standard name attribute, which a mapping's transformations also apply to; a name mapping wins over this property. Kept for streams configured before that existed.
VENDORNAMEGiven request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/configs/{configId}/streams HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Products",
"sourceEntity": "PRODUCT",
"targetWriter": "emporix.customEntity",
"targetType": "product",
"mode": "STANDALONE",
"enabled": true
}
]Retrieves a single stream by its identifier.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe resource identifier.
7c9e6679-7425-40de-944b-e07fc1f90ae7The request was successful. The stream is returned.
A stream that extracts from a source, maps fields, and upserts into an Emporix target type.
The stream identifier.
3fa85f64-5717-4562-b3fc-2c963f66afa6The parent configuration.
7c9e6679-7425-40de-944b-e07fc1f90ae7The stream name.
ProductsThe logical source entity or record.
PRODUCTWhere the stream writes. Possible values:
emporix.customEntity– instances of a custom entity type, named bytargetType.emporix.product– products, including parents and variants.STANDALONEstreams only.emporix.category– categories of the tenant's category tree.STANDALONEstreams only.emporix.price– prices of products.emporix.availability– stock of products at a site.emporix.media– images of products, linked by URL. The images stay where they are hosted.emporix.categoryAssignment– assignments of products to existing categories.
The price, availability, media, and category assignment writers are normally used by a FAN_OUT
stream whose parent is a product stream. The FAN_OUT stream supplies each product's identifier as
productId. A STANDALONE stream that uses them maps productId itself.
The writers other than emporix.customEntity are catalog writers. The Management Dashboard offers them
only to tenants for which Emporix has enabled catalog targets. To have them enabled, contact Emporix
support.
emporix.customEntityFor emporix.customEntity, the custom entity type the stream writes to. For the other writers, a label that groups the stream's imported records, for example in imported data and statistics. Defaults to PRODUCT for emporix.product and CATEGORY for emporix.category. For a FAN_OUT stream into a catalog writer, the service sets the label.
productThe stream's position in the configuration. Streams are listed in this order. When dependencies do not decide the run order, streams run in this order.
0How the stream contributes to the target. Possible values:
STANDALONE– reads its source and writes its own target objects.COMPOSITE_CHILD– reads its source and writes into the objects of the stream named incompositeParent.COMPOSITE_MERGE– reads its source and adds fields to the objects of the stream named incompositeParent.FAN_OUT– has no source of its own. It reads the records the stream named incompositeParentwrote in the same run, and writes further objects for each of them, for example a product's prices. It runs after that stream. Objects it created earlier for a record that no longer lists them are removed.
STANDALONEPossible values: FAN_OUT only. The array in the parent record whose elements each produce one target object, for example prices[]. When omitted, one target object is written per parent record.
prices[]FAN_OUT only. The element field that identifies an element of fanOutPath, for example currency, so that a target object keeps its identity when the elements change order. When omitted, a scalar element identifies itself and an object element is identified by its position.
currencyWhether the stream is a FAN_OUT stream with a parent. Derived from mode and compositeParent.
falseThe source field whose value is tracked as the delta watermark. A delta run extracts only the records whose value is newer than the last run's.
LASTCHANGEDATEHow the delta field's values are formatted, so they can be compared correctly.
DATEPossible values: For a COMPOSITE_CHILD, COMPOSITE_MERGE, or FAN_OUT stream, the name of the stream it contributes to or fans out from.
invoicesFor a composite child stream, the source field holding its parent's key.
INVOICE_IDFor a composite child stream, the parent attribute its records are embedded into.
lineItemsHow a composite child's records reach the parent object.
EMBEDPossible values: How an existing target object is updated. Possible values:
PATCH– changes only the mapped fields and keeps everything else.MERGE_PUT– reads the object, merges the mapped fields into it, and writes it back whole.REPLACE_PUT– replaces the whole object, so fields this import does not manage are cleared.
The values a stream can use depend on its target writer. The following values are available per writer, with the default listed first:
emporix.customEntity–PATCH,MERGE_PUT,REPLACE_PUT.emporix.productandemporix.category–PATCH.emporix.media–PATCH,REPLACE_PUT.emporix.price,emporix.availability, andemporix.categoryAssignment–REPLACE_PUT.
PATCHPossible values: A source field whose value routes each record to a different target type, as defined by discriminatorMap.
DOCUMENT_TYPEWhen the stream was created.
2024-05-01T09:00:00.000ZWhether the stream is active.
trueThe source connection this stream reads from, when it has its own. Omitted means the configuration's default connection is used. One configuration can therefore mix sources.
2b069ad4-ee40-4c1d-9151-898ad59bd88aFor a file-based source, what one file represents. SNAPSHOT: each file is the whole picture, so only the most recently arrived one is read, and the per-record content hash decides what is written. A record missing from a newer file is not deleted. INCREMENTAL: each file is a change set, so every queued file is read in order and a later file's values win. Defaults to SNAPSHOT.
SNAPSHOTPossible values: Whether the stream treats each file as a snapshot. true unless fileMode is INCREMENTAL.
trueFor an EMBED composite child, the source column its parent matches records by. Required for such a stream: without it the parent cannot find its children and writes an empty array.
INVOICE_IDWhether the delta field counts as content when deciding a record has changed. Off by default: a modified timestamp is metadata about a change, not content, and a source that restamps every row on reload would otherwise make every run rewrite the whole table. Turn it on only when the timestamp moving genuinely means the record is different.
falseWhether to refuse to start a run when a pinned mixin's current version has moved past the pinned one, before any record is read. Opt-in, and bypassed by triggering a run with force.
falseNames of streams that must run before this one, beyond the ordering a composite parent already implies. A product stream whose variantRole is VARIANT lists here the stream of the same configuration that imports its parent products, if there is one, so that the parents are written first.
The source field used as the instance's display name. Superseded by mapping a field to the standard name attribute, which a mapping's transformations also apply to; a name mapping wins over this property. Kept for streams configured before that existed.
VENDORNAMEGiven request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/streams/{id} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Products",
"sourceEntity": "PRODUCT",
"targetWriter": "emporix.customEntity",
"targetType": "product",
"mode": "STANDALONE",
"enabled": true
}Retrieves the order in which the configuration's streams run, and the dependencies behind that order.
Dependencies between streams decide the order. The streams' seq values break ties.
Dependencies come from five sources:
an explicit dependency on another stream
a mapping that references a type another stream produces
a
COMPOSITE_CHILDstream withchildStrategyset toEMBED– runs before the parent that embeds ita
COMPOSITE_CHILDstream withchildStrategyset toPATCH, or aCOMPOSITE_MERGEstream – run after the parent they updatea
FAN_OUTstream – runs after the parent whose records it reads
Use this endpoint rather than calculating the order yourself. Mapping transformations add dependencies that a single stream definition does not show. An order calculated without those dependencies can differ from the order used at run time.
- : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
The tenant you want to access.
mytenantThe configuration identifier.
7c9e6679-7425-40de-944b-e07fc1f90ae7The request was successful. The stream order is returned.
Stream names in the order they run.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
An unexpected error occurred in the service. The body is the framework's default error body, not the error schema of the other responses.
GET /importtool/{tenant}/configs/{configId}/stream-order HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"order": [
"vendor",
"purchaseOrder",
"purchaseOrderLine"
],
"prereqs": {
"vendor": [],
"purchaseOrder": [
"vendor"
],
"purchaseOrderLine": [
"purchaseOrder"
]
}
}Last updated
Was this helpful?

