Table of contents
Transformations
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
GET https://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:33Z",
        "modifiedDateTime": "2021-08-02T02:51:33Z",
        "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.

Link to a configuration

Name
Type
Description
configuration

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

message
String

A human-readable representation of the error.

target
String, null

The target of the error.

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

EC schema definition

Name
Type
Description
ecSchemaName
String

EC Schema name

ecSchemaVersion
String

EC Schema version

EC class definition

Name
Type
Description
ecSchemaName
String

EC Schema name

ecClassName
String

EC Class name

Element group properties

Name
Type
Description
elementPropertyQuery
String

ECSql query

Data remapping options

Name
Type
Description
additionalECSchemas

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

elementGroups

Array of element groups that are to be remapped.

EC Class merging group

Name
Type
Description
sourceECClasses

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

Schema optimization options

Name
Type
Description
removeUnusedClasses
Boolean

Option to remove unused EC classes from dynamic EC schemas.

classMergingGroups

Array of EC class merging groups

Align iModel data configuration properties

Name
Type
Description

Links

Name
Type
Description
sourceIModel
targetIModel

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Align iModel data configuration properties transformType

Type of the transformation.

transformParameters

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

Saved view link

Name
Type
Description
savedView

Filter by saved view configuration properties

Name
Type
Description

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Filter by saved view configuration properties transformType

Type of the transformation.

transformParameters

Filter iModel configuration properties

Name
Type
Description
ecSql
String
inclusive
Boolean
includeChildren
Boolean

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Filter iModel configuration transformType

Type of the transformation.

transformParameters

ImportIModel configuration properties

Name
Type
Description
fedGuidsOfRepositoriesToExport
String[]

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Import iModel configuration properties transformType

Type of the transformation.

transformParameters

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Merge iModel configuration properties transformType

Type of the transformation.

Single iModel Configuration Links

Name
Type
Description
iModel

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Populate Federation Guids configuration properties transformType

Type of the transformation.

Remove imported data configuration properties

Name
Type
Description

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.

changesetDescription
String

Description for the changeset created after transformation.

createdDateTime
Date-time

Time the configuration was created at.

modifiedDateTime
Date-time

Time the configuration was last modified at.

Remove imported data configuration properties transformType

Type of the transformation.

transformParameters

Configuration

Was this page helpful?