Transformations
Download API definition:
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
get https://qa-api.bentley.com/transformations/configurations/{configurationId}

This endpoint is used to query a configuration entity with a provided configurationId.

Note: the type of configuration in operation response is a union of different configuration types. Configuration type is denoted by transformType property. API consumers should expect that new configuration types will added in the future. New configurations may have a different schema than the ones that currently exist so configuration should be deserialized based on transformType.

Authentication

Requires Authorization header with valid Bearer token for scope itwin-platform.

For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.

Authorization

You must have imodels_read assigned for the target iModel and imodels_read assigned for the source iModel within related configuration. You can check iModel permissions here.

Rate limits

All iTwin Platform API operations have a rate limit. For more documentation on that visit Rate limits and quotas page.

Request parameters

Name
Required?
Description
configurationId
Yes

ID of the configuration

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

Setting to application/vnd.bentley.itwin-platform.v2+json is recommended.

Response 200 OK

Returns a configuration for the given Id.

json
{
    "configuration": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "Transformation name",
        "changesetDescription": "Example description",
        "createdDateTime": "2021-08-02T02:51:33.0000000+00:00",
        "modifiedDateTime": "2021-08-02T02:51:33.0000000+00:00",
        "transformType": "FilterBySavedView",
        "transformParameters": {
            "_links": {
                "savedView": {
                    "href": "https://api.bentley.com/savedViews/AAAaa0AAaa0AaAAAAaaAAAaAaA-AAA000AAaaa0_Aa0AOa0aaAA0A-a0a0AA-Aa0AAa"
                }
            },
            "viewMode": "IncludeNewContent"
        },
        "_links": {
            "sourceIModel": {
                "href": "https://api.bentley.com/imodels/00000000-0000-0000-0000-000000000000"
            },
            "targetIModel": {
                "href": "https://api.bentley.com/imodels/00000000-0000-0000-0000-000000000000"
            }
        }
    }
}

Response 401 Unauthorized

This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.

json
{
    "error": {
        "code": "HeaderNotFound",
        "message": "Header Authorization was not found in the request. Access denied."
    }
}

Response 404 Not Found

Configuration with the given Id does not exist.

json
{
    "error": {
        "code": "ConfigurationNotFound",
        "message": "Requested Configuration is not available.",
        "target": "00000000-0000-0000-0000-000000000000"
    }
}

Response 429 Too many requests

This response indicates that the client sent more requests than allowed by this API for the current tier of the client.

json
{
    "error": {
        "code": "RateLimitExceeded",
        "message": "The client sent more requests than allowed by this API for the current tier of the client."
    }
}

Response headers

Name
Description
retry-after

Number of seconds to wait until client is allowed to make more requests.

Link

Name
Type
Description
href
String

Link to a resource.

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

message
String

A human-readable representation of the error.

View mode

Specifies saved view mode. 'FilterContent' filters out all new content that was introduced into the iModel after the view was created. 'IncludeNewContent' includes all new content that was introduced into the iModel after the view was created.

Name
Type
Description
IncludeNewContent
String
FilterContent
String

Error Response

Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.

Name
Type
Description
error

Error information.

Saved view link

Name
Type
Description
savedView

Link to a configuration

Name
Type
Description
configuration

Configuration

Filter iModel configuration properties

Name
Type
Description
ecSql
String
inclusive
Boolean
includeChildren
Boolean

ImportIModel configuration properties

Name
Type
Description
fedGuidsOfRepositoriesToExport
String[]

Links

Name
Type
Description
sourceIModel
targetIModel

Align iModel data configuration properties

Name
Type
Description

Merge iModel configuration properties transformType

Type of the transformation.

Name
Type
Description
MergeIModel
String

Merge iModel configuration properties

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Merge iModel configuration properties transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

changesetDescription
String

Description for the changeset created after transformation.

Filter by saved view configuration properties

Name
Type
Description

Filter iModel configuration transformType

Type of the transformation.

Name
Type
Description
FilterIModel
String

Filter iModel configuration

Configuration data.

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Filter iModel configuration transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

transformParameters
changesetDescription
String

Description for the changeset created after transformation.

Import iModel configuration properties transformType

Type of the transformation.

Name
Type
Description
ImportIModel
String

Import iModel configuration properties

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Import iModel configuration properties transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

transformParameters
changesetDescription
String

Description for the changeset created after transformation.

Remove imported data configuration properties

Name
Type
Description

Align iModel data configuration properties transformType

Type of the transformation.

Name
Type
Description
AlignIModelData
String

Align iModel data configuration properties

Configuration data.

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Align iModel data configuration properties transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

transformParameters
changesetDescription
String

Description for the changeset created after transformation.

Filter by saved view configuration properties transformType

Type of the transformation.

Name
Type
Description
FilterBySavedView
String

Filter by saved view configuration properties

Configuration data.

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Filter by saved view configuration properties transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

transformParameters
changesetDescription
String

Description for the changeset created after transformation.

Remove imported data configuration properties transformType

Type of the transformation.

Name
Type
Description
RemoveImportedData
String

Remove imported data configuration properties

Configuration data.

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Remove imported data configuration properties transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

transformParameters
changesetDescription
String

Description for the changeset created after transformation.

EC class definition

Name
Type
Description
ecClassName
String

EC Class name

ecSchemaName
String

EC Schema name

EC schema definition

Name
Type
Description
ecSchemaName
String

EC Schema name

ecSchemaVersion
String

EC Schema version

Single iModel Configuration Links

Name
Type
Description
iModel

Element group properties

Name
Type
Description
elementPropertyQuery
String

ECSql query

Populate Federation Guids configuration properties transformType

Type of the transformation.

Name
Type
Description
PopulateFederationGuids
String

Populate Federation Guids configuration properties

Name
Type
Description
id
String

ID of the configuration.

name
String

User friendly name of the transformation.

Populate Federation Guids configuration properties transformType

Type of the transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

changesetDescription
String

Description for the changeset created after transformation.

EC Class merging group

Name
Type
Description
sourceECClasses

Array of EC classes that will be merged into the target class.

Data remapping options

Name
Type
Description
elementGroups

Array of element groups that are to be remapped.

additionalECSchemas

Array of EC schemas that will be added to target iModel after transformation.

Schema optimization options

Name
Type
Description
classMergingGroups

Array of EC class merging groups

removeUnusedClasses
Boolean

Option to remove unused EC classes from dynamic EC schemas.

Was this page helpful?