Skip to content
Book a demo

Connect documentation

All documentation
Documentation

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_scopestring
  • scope_from_workspace_idstring · uuid

    Required only for workspace_scope when multiple roots exist.

  • workspace_idarray of string · uuid

    Only transformations of these workspaces. Repeatable.

  • idarray of integer

    Only these transformations. Repeatable.

  • typestring

    Only transformations of this type.

  • datastream_idarray of string · uuid

    Only 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__icontainsstring

    Only names containing this text, ignoring case.

  • pageinteger

    Default 1 · Min 1

  • page_sizeinteger

    Default 50 · Min 1

Responses

200OKapplication/json

Response schema

object PagedTransformationSchema

  • itemsarray of one ofrequired
    Items · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired
  • countintegerrequired

401Unauthorizedapplication/json

Response schema

object ErrorSchema

  • detailstringrequired

403Forbiddenapplication/json

Response schema

object ErrorSchema

  • detailstringrequired

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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

  • typestring

    custom takes instructions; every other type takes settings and builds its own instructions. smart-naming-convention cannot be created here.

    One of custom map geo join conditional optionally-conditional currency-conversion smart-naming-convention · Default "custom"

  • workspace_idstring · uuidrequired

    Workspace the transformation is created in.

  • namestringrequired

    Unique within the tenant.

    Min length 1 · Max length 200

  • descriptionstring

    Max length 1000

  • instructionsarray of array of one ofnullable

    custom only. 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

  • settingsobjectnullable

    Typed transformations only: the type's settings, as GET returns them. Map entries are set afterwards with PUT /{id}/entries/.

    Attributes
    • object

    • null

Responses

201Createdapplication/json

Response schema

one of TransformationSchema

  • CustomTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_status_columnsbooleanrequired

401Unauthorizedapplication/json

Response schema

object ErrorSchema

  • detailstringrequired

403Forbiddenapplication/json

Response schema

object ErrorSchema

  • detailstringrequired

409Conflictapplication/json

Response schema

object TransformationConflictSchema

  • detailstringrequired
  • codestringrequired

    One of conflict instructions_not_editable assigned assigned_by_type assigned_outside_access used_by_transformations not_cloneable name_taken already_custom not_convertible

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_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

  • namestring

    Min length 1 · Max length 200

  • descriptionstring

    Max length 1000

  • instructionsarray of array of one of

    Only on custom; refused with 409 where instructions_editable is false.

  • settingsobject

    Only on a typed transformation: merged into the stored settings, so a key left out keeps its value and an explicit null clears a nullable one. A list or object value replaces the stored one whole. 422 on a custom transformation.

Responses

200OKapplication/json

Response schema

one of TransformationSchema

  • CustomTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_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

  • detailstringrequired
  • codestringrequired

    One of conflict instructions_not_editable assigned assigned_by_type assigned_outside_access used_by_transformations not_cloneable name_taken already_custom not_convertible

412Precondition Failedapplication/json

Response schema

object TransformationChangedSchema

  • detailstringrequired
  • codestringrequired
  • currentone ofrequired
    Attributes · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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

  • forceboolean

    Remove 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

  • detailstringrequired
  • codestringrequired

    One of conflict instructions_not_editable assigned assigned_by_type assigned_outside_access used_by_transformations not_cloneable name_taken already_custom not_convertible

412Precondition Failedapplication/json

Response schema

object TransformationChangedSchema

  • detailstringrequired
  • codestringrequired
  • currentone ofrequired
    Attributes · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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

    • namestringnullable

      Defaults to a - CLONED name derived from the source's, made unique.

      Attributes
      • string

      • null

    • workspace_idstring · uuidnullable

      Defaults to the source's workspace.

      Attributes
      • string · uuid

      • null

  • null

Responses

201Createdapplication/json

Response schema

one of TransformationSchema

  • CustomTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_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

  • detailstringrequired
  • codestringrequired
  • currentone ofrequired
    Attributes · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired

409Conflictapplication/json

Response schema

object TransformationConflictSchema

  • detailstringrequired
  • codestringrequired

    One of conflict instructions_not_editable assigned assigned_by_type assigned_outside_access used_by_transformations not_cloneable name_taken already_custom not_convertible

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_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

  • detailstringrequired
  • codestringrequired

    One of conflict instructions_not_editable assigned assigned_by_type assigned_outside_access used_by_transformations not_cloneable name_taken already_custom not_convertible

412Precondition Failedapplication/json

Response schema

object TransformationChangedSchema

  • detailstringrequired
  • codestringrequired
  • currentone ofrequired
    Attributes · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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 · uuidrequired

    Replaces 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

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_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

  • detailstringrequired
  • codestringrequired

    One of conflict instructions_not_editable assigned assigned_by_type assigned_outside_access used_by_transformations not_cloneable name_taken already_custom not_convertible

412Precondition Failedapplication/json

Response schema

object TransformationChangedSchema

  • detailstringrequired
  • codestringrequired
  • currentone ofrequired
    Attributes · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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

  • pageinteger

    Default 1 · Min 1

  • page_sizeinteger

    Default 50 · Min 1

Responses

200OKapplication/json

Response schema

object PagedDatastreamSummarySchema

  • itemsarray of objectrequired
    Items · DatastreamSummarySchema
    • idstring · uuidrequired
    • namestringrequired
    • workspaceobjectrequired
      Attributes · WorkspaceMinimalSchema
      • idstring · uuidrequired
      • namestringrequired
  • 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

  • pageinteger

    Default 1 · Min 1

  • page_sizeinteger

    Default 50 · Min 1

Responses

200OKapplication/json

Response schema

object PagedMapEntrySchema

  • itemsarray of objectrequired
    Items · MapEntrySchema
    • matchstringrequired
    • valuestringrequired
  • 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

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why 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 objectrequired

    All the entries of the map; match is 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
    • matchstringrequired

      Min length 1 · Max length 750

    • valuestring

      Max length 1000

Responses

200OKapplication/json

Response schema

one of TransformationSchema

  • CustomTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsnullrequired
  • MapTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · MapSettingsSchema
      • source_columnstringrequired

        Max length 200

      • target_columnstringrequired

        Max length 200

      • actionstringrequired

        What to do with values not in the entries.

        One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

      • match_typestringrequired

        One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

      • file_namestringrequired

        Informational; no file is read.

        Max length 200

  • GeoTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · GeoSettingsSchema
      • geo_location_mappingsobjectrequired

        The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

      • actionstringrequired

        One of fail_and_stop notify ignore

      • default_valuestringrequired

        Max length 200

  • JoinTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · JoinSettingsSchema
      • joined_datastream_idstring · uuidrequirednullable

        The 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 anyrequired

        The join keys, each {left, right} column names.

      • selected_columnsarray of anyrequired

        Columns of the joined datastream added to the rows.

  • ConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · ConditionalSettingsSchema
      • blocksarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

  • OptionallyConditionalTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · OptionallyConditionalSettingsSchema
      • actionstringrequired

        One of add replace

      • is_expression_conditionalbooleanrequired
      • expressionarray of anyrequired

        Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

  • CurrencyConversionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · CurrencyConversionSettingsSchema
      • source_columnstringrequirednullable
        Attributes
        • string

        • null

      • keep_source_columnsbooleanrequired

        Default true

      • date_columnstringrequirednullable
        Attributes
        • string

        • null

      • currency_columnstringrequirednullable
        Attributes
        • string

        • null

      • conversion_servicestringrequired

        One of oer ecb · Default "oer"

      • from_currencystringrequired

        Default "EUR"

      • to_currencystringrequired

        Default "USD"

  • SmartNamingConventionTransformationSchema

    • idintegerrequired
    • workspace_idstring · uuidrequired
    • namestringrequired
    • descriptionstringrequired
    • instructionsarray of array of anyrequired

      The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

    • instructions_editablebooleanrequired

      Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

    • datastream_idsarray of string · uuidrequired

      The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

    • disabled_datastream_idsarray of string · uuidrequired

      The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

    • updatedstring · date-timerequired
    • createdstring · date-timerequired
    • typestringrequired
    • settingsobjectrequired
      Attributes · SmartNamingConventionSettingsSchema
      • columnstringrequired
      • email_for_warningbooleanrequired
      • raise_for_warningbooleanrequired
      • email_for_errorbooleanrequired
      • continue_for_errorbooleanrequired
      • add_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

  • detailstringrequired
  • codestringrequired
  • currentone ofrequired
    Attributes · TransformationSchema
    • CustomTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsnullrequired
    • MapTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · MapSettingsSchema
        • source_columnstringrequired

          Max length 200

        • target_columnstringrequired

          Max length 200

        • actionstringrequired

          What to do with values not in the entries.

          One of unchanged add_new_values add_new_values_and_notify · Default "unchanged"

        • match_typestringrequired

          One of exact exact_case_insensitive contains contains_case_insensitive regex · Default "exact"

        • file_namestringrequired

          Informational; no file is read.

          Max length 200

    • GeoTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · GeoSettingsSchema
        • geo_location_mappingsobjectrequired

          The UI form's mapping: source_column {name, location_type} and new_columns [{name, location_type}]. location_type is 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.

        • actionstringrequired

          One of fail_and_stop notify ignore

        • default_valuestringrequired

          Max length 200

    • JoinTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · JoinSettingsSchema
        • joined_datastream_idstring · uuidrequirednullable

          The 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 anyrequired

          The join keys, each {left, right} column names.

        • selected_columnsarray of anyrequired

          Columns of the joined datastream added to the rows.

    • ConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · ConditionalSettingsSchema
        • blocksarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional or conditional_default. result is {operation, transformation_id}: execute_enrichment runs the transformation with that id, noop runs nothing. transformation_id is null for noop and for a transformation the key cannot read; sent back with the same block key, it keeps running that one. A write names transformations inside the workspace family; the stored form's keys (enrichmentId, columnType) are refused.

    • OptionallyConditionalTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · OptionallyConditionalSettingsSchema
        • actionstringrequired

          One of add replace

        • is_expression_conditionalbooleanrequired
        • expressionarray of anyrequired

          Each block is {key, type, condition, result}. condition is null on a block that always applies, otherwise an and of or groups, each {key, operation, conditions}; a single condition is {key, column, column_type, operation, value, case_sensitive}, where column_type and operation are integer codes. type is conditional, conditional_default, unconditional or find_and_replace_all. result is {operation, column, column_type, value, match_value, match_value_case_sensitive} with operation one of set, use_current and find_and_replace_all.

    • CurrencyConversionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · CurrencyConversionSettingsSchema
        • source_columnstringrequirednullable
          Attributes
          • string

          • null

        • keep_source_columnsbooleanrequired

          Default true

        • date_columnstringrequirednullable
          Attributes
          • string

          • null

        • currency_columnstringrequirednullable
          Attributes
          • string

          • null

        • conversion_servicestringrequired

          One of oer ecb · Default "oer"

        • from_currencystringrequired

          Default "EUR"

        • to_currencystringrequired

          Default "USD"

    • SmartNamingConventionTransformationSchema

      • idintegerrequired
      • workspace_idstring · uuidrequired
      • namestringrequired
      • descriptionstringrequired
      • instructionsarray of array of anyrequired

        The custom-script instructions the transformation runs, each [operation, arguments] as stored. On every type but custom they are generated from settings.

      • instructions_editablebooleanrequired

        Whether instructions are the source of truth. Only custom transformations are; the other types regenerate their instructions from settings.

      • datastream_idsarray of string · uuidrequired

        The datastreams the transformation is assigned to, among those the key can see, switched-off assignments included.

      • disabled_datastream_idsarray of string · uuidrequired

        The part of datastream_ids whose assignment is switched off: the transformation does not run on those datastreams.

      • updatedstring · date-timerequired
      • createdstring · date-timerequired
      • typestringrequired
      • settingsobjectrequired
        Attributes · SmartNamingConventionSettingsSchema
        • columnstringrequired
        • email_for_warningbooleanrequired
        • raise_for_warningbooleanrequired
        • email_for_errorbooleanrequired
        • continue_for_errorbooleanrequired
        • add_status_columnsbooleanrequired

422Unprocessable Entityapplication/json

Response schema

object ValidationErrorSchema

  • detailstringrequired

    Short reason. For a request that fails schema validation this is a JSON-encoded list of the offending fields, as on every Management API endpoint.

  • codestringrequired

    Always invalid.

  • errorsarray of stringrequired

    Why it was refused, one entry each, naming the field where there is one.

429Too Many Requestsapplication/json

Response schema

object ThrottlingError

  • detailstringrequired