Table of contents
Synchronization
Download API definition:
GET https://api.bentley.com/synchronization/imodels/manifestconnections/{connectionId}/runs/{runId}

Retrieves a ManifestConnection Run with the specified ID.

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.

Request parameters

Name
Required?
Description
connectionId
Yes

Connection Id

runId
Yes

Run Id

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

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

Response 200 OK

OK

json
{
    "run": {
        "id": "a1ecbdc8c4f6173004f9f881914a57c5511a362b",
        "connectionId": "MWplZe9Uf0iR1IDMqyOMLry641hUCa9JjxI3cYz8uCg",
        "startDateTime": "2020-10-24T02:44:13.4109666Z",
        "endDateTime": "2020-10-24T02:47:13.4109666Z",
        "phase": "MasterFile",
        "state": "Completed",
        "result": "PartialSuccess",
        "error": {
            "errorKey": "UserNotAuthenticated",
            "description": "User is not authenticated."
        },
        "jobs": [{
            "id": "d6ecbdc8c4f6173004f9f881914a57c5511a362b",
            "startDateTime": "2020-10-24T02:44:13.4109666Z",
            "endDateTime": "2020-10-24T02:44:13.4109666Z",
            "state": "Completed",
            "result": "PartialSuccess",
            "connectorType": "DWG",
            "tasks": [{
                "id": "f5ecbdc8c4f6173004f9f881914a57c5511a362b",
                "sourceFileId": "master-file-id123",
                "startDateTime": "2020-10-24T02:44:13.4109666Z",
                "endDateTime": "2020-10-24T02:44:13.4109666Z",
                "retryAttempts": 0,
                "state": "Completed",
                "result": "Success",
                "error": {
                    "errorCode": "TAE_BRG_1000",
                    "message": "Failed to process the file.",
                    "details": "Error exit code received from bridge wrapper.",
                    "bridgeExitCode": 4294967295,
                    "system": "cloud_orchestrator",
                    "phase": "internal_server_error",
                    "category": "other",
                    "descriptionKey": "RunOrchestrationError",
                    "description": "Failed to orchestrate Run.",
                    "kbArticleLink": "",
                    "canUserFix": false
                },
                "details": {
                    "synchronizationReport": {
                        "suggestedAction": "Warning",
                        "message": "",
                        "totalErrorsCount": 0,
                        "totalWarningsCount": 20,
                        "totalOtherIssuesCount": 3
                    }
                }
            }]
        }]
    }
}

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

This response indicates that the specified connection run was not found.

json
{
    "error": {
        "code": "ManifestConnectionRunNotFound",
        "message": "Requested ManifestConnection Run is not available."
    }
}

Response 422 Unprocessable Entity

Invalid request to get connection run.

json
{
    "error": {
        "code": "InvalidManifestConnectionRunRequest",
        "message": "Cannot perform operation.",
        "details": [{
            "code": "InvalidValue",
            "message": "Provided connectionId value is not valid.",
            "target": "connectionId"
        }]
    }
}

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.

Run response

Name
Type
Description
run

Manifest run entity.

Manifest Connection Run

Name
Type
Description
id
String

A connection run id.

connectionId
String

Connection id.

startDateTime
String

A timestamp when connection run started.

endDateTime
String

A timestamp when connection run ended.

phase

Job phase.

state

A string indicating current execution status of the run.

result

A string indicating outcome of the executed run.

error

Run error entity.

jobs

An array of manifest job entities.

Run error details

Name
Type
Description
errorKey
String

Error key.

description
String

More information about run error.

Manifest Connection Run's Job

Name
Type
Description
id
String

A manifest job id.

startDateTime
String

A timestamp when manifest job started.

endDateTime
String

A timestamp when manifest job ended.

state
String

A string indicating current execution status of the job.

result
String

A string indicating outcome of the executed job.

connectorType

Type of connector used for synchronization. Refer supported connector format for details.

tasks

An array of manifest task entities.

Manifest Connection Run Job's Task

Name
Type
Description
id
String

A manifest task id.

sourceFileId
String

Source file id.

startDateTime
String

A timestamp when manifest task started.

endDateTime
String

A timestamp when manifest task ended.

retryAttempts
Integer

The number of attempts when manifest task was retried.

state
String

A string indicating current status of the manifest task.

result
String

A string indicating outcome of the manifest task.

error

Task error entity.

details

Task result details.

Job Phase

One of 'Preprocessor', 'MasterFile', 'ReferenceFile'.

Name
Type
Description
Preprocessor
String
MasterFile
String
ReferenceFile
String

Execution State

One of 'NotStarted', 'Idle', 'WaitingToExecute', 'WaitingToRetry', 'Executing', 'Finalizing', 'Completed', 'Queued'.

Name
Type
Description
NotStarted
String
Idle
String
WaitingToExecute
String
WaitingToRetry
String
Executing
String
Finalizing
String
Completed
String
Queued
String

Execution Result

One of 'Undetermined', 'Success', 'Error', 'PartialSuccess', 'Skipped', 'Canceled', 'TimedOut'.

Name
Type
Description
Undetermined
String
Success
String
Error
String
PartialSuccess
String
Skipped
String
Canceled
String
TimedOut
String

task-error

Name
Type
Description
errorCode
String

Error code.

message
String

A human-readable representation of the error.

details
String

More specific information about the error.

bridgeExitCode
Integer

An integer representing connector exit code.

system
String

System.

phase
String

Phase.

category
String

Category.

descriptionKey
String

Description key.

description
String

Description.

kbArticleLink
String

A link to public documentation for known errors.

canUserFix
Boolean

A boolean value representing if the error is user fixable or not.

Task details

Name
Type
Description
synchronizationReport

Synchronization result summary

Synchronization report

Name
Type
Description
suggestedAction

Most severe issue type

message
String

Error message explaining the result

totalErrorsCount
Integer

Number of errors in the report

totalWarningsCount
Integer

Number of warnings in the report

totalOtherIssuesCount
Integer

Number of other issues in the report

Suggested action

Error severity level

Name
Type
Description
Error
String
Warning
String
Info
String

Connector type

One of 'AUTOPLANT', 'CIVIL', 'CIVIL3D', 'DWG', 'GEOSPATIAL', 'IFC', 'MSTN', 'NWD', 'OBD', 'OPENTOWER', 'REVIT', 'SPPID', 'SPXREVIEW'. Name of the Connector that is used for synchronization.

Name
Type
Description
AUTOPLANT
String
CIVIL
String
CIVIL3D
String
DWG
String
GEOSPATIAL
String
IFC
String
MSTN
String
NWD
String
OBD
String
OPENTOWER
String
REVIT
String
SPPID
String
SPXREVIEW
String

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

Error information.

Was this page helpful?