Transformations
11 operations in the Adverity Connect API. Replace {{INSTANCE}} and {{KEY}} in the examples with your instance and API key. How authentication works.
List transformations
GET/api/v1/transformations/
API key permissionTransformation: Read-onlytransformation:read
Every transformation the key can see, of every type, in one shape: type says which enrichment built it and settings carries that type's own configuration, while instructions holds the custom-script instructions it runs. Only custom transformations have editable instructions.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.workspace_idarray of string · uuidOnly transformations of these workspaces. Repeatable.
idarray of integerOnly these transformations. Repeatable.
typestringOnly transformations of this type.
datastream_idarray of string · uuidOnly transformations assigned to one of these datastreams, switched-off assignments included. Repeatable. Like every listing here it returns the transformations of the key's workspaces only, so a transformation of a parent workspace that also runs on the datastream is not listed.
name__icontainsstringOnly names containing this text, ignoring case.
pageintegerDefault
1· Min1page_sizeintegerDefault
50· Min1
Responses
200OKapplication/json
Response schema
object PagedTransformationSchema
itemsarray of one ofrequiredItems · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
countintegerrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
Create a transformation
POST/api/v1/transformations/
API key permissionTransformation: Writetransformation:write
Creates a custom transformation from instructions, or a typed one from settings, validated in the workspace it is created in as saving it in the UI validates it. Instructions and settings may only name datastreams, mapping and value tables, workspaces and transformations of that workspace's family. The type must be enabled and included in the plan, within its limit. A map starts without entries: set them with PUT /{id}/entries/. smart-naming-convention is created in the UI. A name already in use returns 409 name_taken.
Request bodyrequired
application/json
Body schema
object TransformationCreateSchema
typestringcustomtakesinstructions; every other type takessettingsand builds its own instructions.smart-naming-conventioncannot be created here.One of
custommapgeojoinconditionaloptionally-conditionalcurrency-conversionsmart-naming-convention· Default"custom"workspace_idstring · uuidrequiredWorkspace the transformation is created in.
namestringrequiredUnique within the tenant.
Min length
1· Max length200descriptionstringMax length
1000instructionsarray of array of one ofnullablecustomonly. Custom-script instructions, each[operation, arguments]. Checked in the workspace of the transformation. Internal operations (names starting with!, also switched off with#or commented with_) are refused.Attributes
array of array of one of
null
settingsobjectnullableTyped transformations only: the type's settings, as
GETreturns them. Map entries are set afterwards withPUT /{id}/entries/.Attributes
object
null
Responses
201Createdapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
409Conflictapplication/json
Response schema
object TransformationConflictSchema
detailstringrequiredcodestringrequiredOne of
conflictinstructions_not_editableassignedassigned_by_typeassigned_outside_accessused_by_transformationsnot_cloneablename_takenalready_customnot_convertible
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired
Get a transformation
GET/api/v1/transformations/{transformation_id}/
API key permissionTransformation: Read-onlytransformation:read
One transformation with its type, settings, instructions and datastreams.
Path parameters
transformation_idintegerrequired
Responses
200OKapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
Update a transformation
PATCH/api/v1/transformations/{transformation_id}/
API key permissionTransformation: Writetransformation:write
Changes the fields sent. instructions can only be sent for a transformation whose instructions_editable is true; otherwise the response is 409 instructions_not_editable, as the instructions of the other types are generated from their settings, which settings changes key by key (422 on a custom one). convert-to-custom is the way to editable instructions. type and workspace_id cannot be changed. A name already in use returns 409 name_taken. A smart-naming-convention whose feature is switched off answers 422; it can only be deleted.
Path parameters
transformation_idintegerrequired
Request bodyrequired
application/json
Body schema
object TransformationPatchSchema
namestringMin length
1· Max length200descriptionstringMax length
1000instructionsarray of array of one ofOnly on
custom; refused with 409 whereinstructions_editableis false.settingsobjectOnly on a typed transformation: merged into the stored settings, so a key left out keeps its value and an explicit
nullclears a nullable one. A list or object value replaces the stored one whole. 422 on acustomtransformation.
Responses
200OKapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
409Conflictapplication/json
Response schema
object TransformationConflictSchema
detailstringrequiredcodestringrequiredOne of
conflictinstructions_not_editableassignedassigned_by_typeassigned_outside_accessused_by_transformationsnot_cloneablename_takenalready_customnot_convertible
412Precondition Failedapplication/json
Response schema
object TransformationChangedSchema
detailstringrequiredcodestringrequiredcurrentone ofrequiredAttributes · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired
Delete a transformation
DELETE/api/v1/transformations/{transformation_id}/
API key permissionTransformation: Writetransformation:write
Deletes the transformation, removing what its type created on its datastreams, as deleting it in the UI does. While datastreams or datastream types use it the response is 409 assigned; with force=true their assignments are removed first. Never deleted, force or not: one another transformation runs (a conditional, a split, a smartnamingconvention), 409 used_by_transformations, and one also applied to datastreams the key cannot see, 409 assigned_outside_access. Draft datastreams and datastreams a scheduled deletion will remove do not count as assigned.
Path parameters
transformation_idintegerrequired
Query parameters
forcebooleanRemove the datastream and datastream type assignments, then delete.
Default
false
Responses
204No Content
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
409Conflictapplication/json
Response schema
object TransformationConflictSchema
detailstringrequiredcodestringrequiredOne of
conflictinstructions_not_editableassignedassigned_by_typeassigned_outside_accessused_by_transformationsnot_cloneablename_takenalready_customnot_convertible
412Precondition Failedapplication/json
Response schema
object TransformationChangedSchema
detailstringrequiredcodestringrequiredcurrentone ofrequiredAttributes · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired
Clone a transformation
POST/api/v1/transformations/{transformation_id}/clone/
API key permissionTransformation: Writetransformation:write
Copies the transformation into the same or another workspace the key can see. The copy keeps the type and settings and is applied to no datastream. A smart-naming-convention cannot be cloned (409 not_cloneable): the copy would keep running the original's rules. The type must be enabled and in the plan, as on create.
Path parameters
transformation_idintegerrequired
Request body
application/json
Body schema
object
TransformationCloneSchema
namestringnullableDefaults to a
- CLONEDname derived from the source's, made unique.Attributes
string
null
workspace_idstring · uuidnullableDefaults to the source's workspace.
Attributes
string · uuid
null
null
Responses
201Createdapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
412Precondition Failedapplication/json
Response schema
object TransformationChangedSchema
detailstringrequiredcodestringrequiredcurrentone ofrequiredAttributes · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
409Conflictapplication/json
Response schema
object TransformationConflictSchema
detailstringrequiredcodestringrequiredOne of
conflictinstructions_not_editableassignedassigned_by_typeassigned_outside_accessused_by_transformationsnot_cloneablename_takenalready_customnot_convertible
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired
Convert a typed transformation to a custom script
POST/api/v1/transformations/{transformation_id}/convert-to-custom/
API key permissionTransformation: Writetransformation:write
Irreversible. Rewrites the transformation as a custom one holding its current instructions, which can then be edited; it keeps its id, name and datastreams. The type's settings and the UI form for it are gone. 409 already_custom on a custom transformation. Only join and currency-conversion convert, and custom scripts must be in the plan (422); 409 not_convertible on a type whose instructions would not work as a custom script (map, geo, conditional, optionally-conditional, smart-naming-convention). The typed row leaves without its manager's delete hook: a currency-conversion with keep_source_columns false does not get its source column restored, now or when the converted script is later unassigned; the next fetch's column tracking does.
Path parameters
transformation_idintegerrequired
Responses
200OKapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
409Conflictapplication/json
Response schema
object TransformationConflictSchema
detailstringrequiredcodestringrequiredOne of
conflictinstructions_not_editableassignedassigned_by_typeassigned_outside_accessused_by_transformationsnot_cloneablename_takenalready_customnot_convertible
412Precondition Failedapplication/json
Response schema
object TransformationChangedSchema
detailstringrequiredcodestringrequiredcurrentone ofrequiredAttributes · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired
Replace the datastreams a transformation is applied to
PUT/api/v1/transformations/{transformation_id}/datastreams/
API key permissionTransformation: Writetransformation:write
Replaces the assignments the key can see with the datastreams given, which must be visible and inside the transformation's workspace family, or assigned already; assignments to datastreams the key cannot see, or that a scheduled deletion will remove, are kept. A smart-naming-convention whose feature is switched off answers 422. OPTIONS on this path lists the assignable ones, as on monitors.
Path parameters
transformation_idintegerrequired
Request bodyrequired
application/json
Body schema
object TransformationAssignSchema
datastream_idsarray of string · uuidrequiredReplaces the visible assignments with this complete list. Up to 1000 new datastreams can be assigned per request, in addition to any existing assignments this list retains.
Responses
200OKapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
409Conflictapplication/json
Response schema
object TransformationConflictSchema
detailstringrequiredcodestringrequiredOne of
conflictinstructions_not_editableassignedassigned_by_typeassigned_outside_accessused_by_transformationsnot_cloneablename_takenalready_customnot_convertible
412Precondition Failedapplication/json
Response schema
object TransformationChangedSchema
detailstringrequiredcodestringrequiredcurrentone ofrequiredAttributes · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired
Discover datastreams assignable to a transformation
OPTIONS/api/v1/transformations/{transformation_id}/datastreams/
API key permissionsTransformation: Read-onlytransformation:readDatastream: Read-onlydatastream:read
Visible datastreams in the transformation's workspace family it is not applied to yet.
Path parameters
transformation_idintegerrequired
Query parameters
pageintegerDefault
1· Min1page_sizeintegerDefault
50· Min1
Responses
200OKapplication/json
Response schema
object PagedDatastreamSummarySchema
itemsarray of objectrequiredItems · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
List the entries of a map transformation
GET/api/v1/transformations/{transformation_id}/entries/
API key permissionTransformation: Read-onlytransformation:read
The match and value rows of a map transformation; 404 for any other type.
Path parameters
transformation_idintegerrequired
Query parameters
pageintegerDefault
1· Min1page_sizeintegerDefault
50· Min1
Responses
200OKapplication/json
Response schema
object PagedMapEntrySchema
itemsarray of objectrequiredItems · MapEntrySchema
matchstringrequiredvaluestringrequired
countintegerrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
Replace the entries of a map transformation
PUT/api/v1/transformations/{transformation_id}/entries/
API key permissionTransformation: Writetransformation:write
Sets the entries to exactly the ones given, each match unique, as many as the request body can hold. 404 for any type but map. Returns the transformation with its new updated. A map created here starts empty and an empty list clears it; the UI form needs at least one row to save, so give the map its rows before anyone edits it there. Surrounding whitespace is trimmed from match and value, as the UI form trims it.
Path parameters
transformation_idintegerrequired
Request bodyrequired
application/json
Body schema
object MapEntriesReplaceSchema
entriesarray of objectrequiredAll the entries of the map;
matchis unique. There is no cap on the number of entries, only on the size of the request body. An empty list is accepted, but the UI form does not save a map without a row.Items · MapEntryInputSchema
matchstringrequiredMin length
1· Max length750valuestringMax length
1000
Responses
200OKapplication/json
Response schema
one of TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
401Unauthorizedapplication/json
Response schema
object ErrorSchema
detailstringrequired
403Forbiddenapplication/json
Response schema
object ErrorSchema
detailstringrequired
404Not Foundapplication/json
Response schema
object ErrorSchema
detailstringrequired
412Precondition Failedapplication/json
Response schema
object TransformationChangedSchema
detailstringrequiredcodestringrequiredcurrentone ofrequiredAttributes · TransformationSchema
CustomTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsnullrequired
MapTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · MapSettingsSchema
source_columnstringrequiredMax length
200target_columnstringrequiredMax length
200actionstringrequiredWhat to do with values not in the entries.
One of
unchangedadd_new_valuesadd_new_values_and_notify· Default"unchanged"match_typestringrequiredOne of
exactexact_case_insensitivecontainscontains_case_insensitiveregex· Default"exact"file_namestringrequiredInformational; no file is read.
Max length
200
GeoTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · GeoSettingsSchema
geo_location_mappingsobjectrequiredThe UI form's mapping:
source_column{name, location_type}andnew_columns[{name, location_type}].location_typeis the UI's integer code, the one choice not rendered as an identifier: 1 country name, 2 ISO 3166-1 alpha-2, 3 ISO 3166-1 alpha-3, 4 ISO 3166-1 numeric, 5 ISO 3166-2 region.actionstringrequiredOne of
fail_and_stopnotifyignoredefault_valuestringrequiredMax length
200
JoinTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · JoinSettingsSchema
joined_datastream_idstring · uuidrequirednullableThe datastream joined in, inside the workspace family. In a response it is null when the datastream was deleted or the key cannot see it; a write does not accept null.
Attributes
string · uuid
null
common_columnsarray of anyrequiredThe join keys, each
{left, right}column names.selected_columnsarray of anyrequiredColumns of the joined datastream added to the rows.
ConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · ConditionalSettingsSchema
blocksarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditionalorconditional_default.resultis{operation, transformation_id}:execute_enrichmentruns the transformation with thatid,noopruns nothing.transformation_idisnullfornoopand for a transformation the key cannot read; sent back with the same blockkey, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId,columnType) are refused.
OptionallyConditionalTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · OptionallyConditionalSettingsSchema
actionstringrequiredOne of
addreplaceis_expression_conditionalbooleanrequiredexpressionarray of anyrequiredEach block is
{key, type, condition, result}.conditionisnullon a block that always applies, otherwise anandoforgroups, each{key, operation, conditions}; a single condition is{key, column, column_type, operation, value, case_sensitive}, wherecolumn_typeandoperationare integer codes.typeisconditional,conditional_default,unconditionalorfind_and_replace_all.resultis{operation, column, column_type, value, match_value, match_value_case_sensitive}withoperationone ofset,use_currentandfind_and_replace_all.
CurrencyConversionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · CurrencyConversionSettingsSchema
source_columnstringrequirednullableAttributes
string
null
keep_source_columnsbooleanrequiredDefault
truedate_columnstringrequirednullableAttributes
string
null
currency_columnstringrequirednullableAttributes
string
null
conversion_servicestringrequiredOne of
oerecb· Default"oer"from_currencystringrequiredDefault
"EUR"to_currencystringrequiredDefault
"USD"
SmartNamingConventionTransformationSchema
idintegerrequiredworkspace_idstring · uuidrequirednamestringrequireddescriptionstringrequiredinstructionsarray of array of anyrequiredThe custom-script instructions the transformation runs, each
[operation, arguments]as stored. On every type butcustomthey are generated fromsettings.instructions_editablebooleanrequiredWhether
instructionsare the source of truth. Onlycustomtransformations are; the other types regenerate their instructions fromsettings.datastream_idsarray of string · uuidrequiredThe datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.
disabled_datastream_idsarray of string · uuidrequiredThe part of
datastream_idswhose assignment is switched off: the transformation does not run on those datastreams.updatedstring · date-timerequiredcreatedstring · date-timerequiredtypestringrequiredsettingsobjectrequiredAttributes · SmartNamingConventionSettingsSchema
columnstringrequiredemail_for_warningbooleanrequiredraise_for_warningbooleanrequiredemail_for_errorbooleanrequiredcontinue_for_errorbooleanrequiredadd_status_columnsbooleanrequired
422Unprocessable Entityapplication/json
Response schema
object ValidationErrorSchema
detailstringrequiredShort reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.
codestringrequiredAlways
invalid.errorsarray of stringrequiredWhy it was refused, one entry each, naming the field where there is one.
429Too Many Requestsapplication/json
Response schema
object ThrottlingError
detailstringrequired