Retrieves all Runs for the specified connection.
Notes
The Prefer header can be used to specify how much result metadata is desired by the client. The Prefer request header field is used to indicate that particular server behaviors are preferred by the client but are not required for successful completion of the request.
This operation supports "return=representation" and "return=minimal" preferences.
The "return=representation" preference indicates that the client prefers that the server include an entity representing the current state of the resource in the response to a successful request.
The "return=minimal" preference indicates that the client wishes the server to return only a minimal response to a successful request. This is the default preference if Prefer header is not specified.
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
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Response 200 OK
OK
{ "runs": [{ "id": "5a9c04ef-b1e2-4b70-bee1-2689075fc178", "state": "Completed", "result": "Success" }], "_links": { "self": { "href": "https://api.bentley.com/synchronization/imodels/manifestconnections/{connectionId}/runs?$skip=0&$top=100" }, "prev": { "href": "https://api.bentley.com/synchronization/imodels/manifestconnections/{connectionId}/runs?$skip=100&$top=100" }, "next": { "href": "https://api.bentley.com/synchronization/imodels/manifestconnections/{connectionId}/runs?$skip=200&$top=100" } } }
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.
{ "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 was not found.
{ "error": { "code": "ManifestConnectionNotFound", "message": "Requested ManifestConnection is not available." } }
Response 422 Unprocessable Entity
Invalid request to get connection run.
{ "error": { "code": "InvalidManifestConnectionRunsRequest", "message": "Cannot perform operation.", "details": [{ "code": "InvalidValue", "message": "Provided connectionId value is not valid.", "target": "connectionId" }, { "code": "InvalidValue", "message": "Page size is out of limits.", "target": "$skip" }, { "code": "InvalidValue", "message": "Page size is out of limits.", "target": "$top" }] } }
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.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Link
Hyperlink to the specific entity.
{ "type": "object", "properties": { "href": { "type": "string", "description": "Hyperlink to the specific entity." } }, "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information.", "additionalProperties": true }
Links (paging)
URLs for redoing the current request, getting to the previous or next page of results.
{ "type": "object", "title": "Links (paging)", "properties": { "next": { "$ref": "#/components/schemas/Link" }, "prev": { "$ref": "#/components/schemas/Link" }, "self": { "$ref": "#/components/schemas/Link" } }, "description": "URLs for redoing the current request, getting to the previous or next page of results.", "additionalProperties": false }
Job Phase
One of 'Preprocessor', 'MasterFile', 'ReferenceFile'.
{ "enum": [ "Preprocessor", "MasterFile", "ReferenceFile" ], "type": "string", "title": "Job Phase", "description": "One of 'Preprocessor', 'MasterFile', 'ReferenceFile'." }
task-error
Phase.
System.
More specific information about the error.
A human-readable representation of the error.
Category.
Error code.
A boolean value representing if the error is user fixable or not.
Description.
A link to public documentation for known errors.
An integer representing connector exit code.
Description key.
{ "type": "object", "properties": { "phase": { "type": "string", "description": "Phase." }, "system": { "type": "string", "description": "System." }, "details": { "type": "string", "description": "More specific information about the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "category": { "type": "string", "description": "Category." }, "errorCode": { "type": "string", "description": "Error code." }, "canUserFix": { "type": "boolean", "description": "A boolean value representing if the error is user fixable or not." }, "description": { "type": "string", "description": "Description." }, "kbArticleLink": { "type": "string", "description": "A link to public documentation for known errors." }, "bridgeExitCode": { "type": "integer", "description": "An integer representing connector exit code." }, "descriptionKey": { "type": "string", "description": "Description key." } }, "additionalProperties": false }
Manifest Connection Run's Job
A manifest job id.
A string indicating current execution status of the job.
A string indicating outcome of the executed job.
A timestamp when manifest job ended.
A timestamp when manifest job started.
{ "type": "object", "title": "Manifest Connection Run's Job", "properties": { "id": { "type": "string", "description": "A manifest job id." }, "state": { "type": "string", "description": "A string indicating current execution status of the job." }, "tasks": { "type": "array", "items": { "$ref": "#/components/schemas/manifest-task" }, "description": "An array of manifest task entities." }, "result": { "type": "string", "description": "A string indicating outcome of the executed job." }, "endDateTime": { "type": "string", "description": "A timestamp when manifest job ended." }, "connectorType": { "$ref": "#/components/schemas/connector-type" }, "startDateTime": { "type": "string", "description": "A timestamp when manifest job started." } }, "additionalProperties": false }
Manifest Connection Run
A connection run id.
A timestamp when connection run ended.
Connection id.
A timestamp when connection run started.
{ "type": "object", "title": "Manifest Connection Run", "properties": { "id": { "type": "string", "description": "A connection run id." }, "jobs": { "type": "array", "items": { "$ref": "#/components/schemas/manifest-job" }, "description": "An array of manifest job entities." }, "error": { "$ref": "#/components/schemas/run-error-details" }, "phase": { "$ref": "#/components/schemas/job-phase" }, "state": { "$ref": "#/components/schemas/execution-state" }, "result": { "$ref": "#/components/schemas/execution-result" }, "endDateTime": { "type": "string", "description": "A timestamp when connection run ended." }, "connectionId": { "type": "string", "description": "Connection id." }, "startDateTime": { "type": "string", "description": "A timestamp when connection run started." } }, "additionalProperties": false }
Task details
{ "type": "object", "title": "Task details", "properties": { "synchronizationReport": { "$ref": "#/components/schemas/synchronization-report" } }, "additionalProperties": false }
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.
{ "type": "object", "title": "Error Response", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/Error", "description": "Error information." } }, "description": "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.", "additionalProperties": false }
Manifest Connection Run Job's Task
A manifest task id.
A string indicating current status of the manifest task.
A string indicating outcome of the manifest task.
A timestamp when manifest task ended.
Source file id.
The number of attempts when manifest task was retried.
A timestamp when manifest task started.
{ "type": "object", "title": "Manifest Connection Run Job's Task", "properties": { "id": { "type": "string", "description": "A manifest task id." }, "error": { "$ref": "#/components/schemas/task-error" }, "state": { "type": "string", "description": "A string indicating current status of the manifest task." }, "result": { "type": "string", "description": "A string indicating outcome of the manifest task." }, "details": { "$ref": "#/components/schemas/task-details" }, "endDateTime": { "type": "string", "description": "A timestamp when manifest task ended." }, "sourceFileId": { "type": "string", "description": "Source file id." }, "retryAttempts": { "type": "integer", "description": "The number of attempts when manifest task was retried." }, "startDateTime": { "type": "string", "description": "A timestamp when manifest task started." } }, "additionalProperties": false }
Connector type
One of 'AUTOPLANT', 'CIVIL', 'CIVIL3D', 'DWG', 'GEOSPATIAL', 'IFC', 'MSTN', 'NWD', 'OBD', 'OPENTOWER', 'REVIT', 'SPPID', 'SPXREVIEW', 'PROSTRUCTURES', 'RVM', 'PSEXCEL', 'INTELLIPID'. Name of the Connector that is used for synchronization.
{ "enum": [ "AUTOPLANT", "CIVIL", "CIVIL3D", "DWG", "GEOSPATIAL", "IFC", "MSTN", "NWD", "OBD", "OPENTOWER", "REVIT", "SPPID", "SPXREVIEW", "PROSTRUCTURES", "RVM", "PSEXCEL", "INTELLIPID" ], "type": "string", "title": "Connector type", "description": "One of 'AUTOPLANT', 'CIVIL', 'CIVIL3D', 'DWG', 'GEOSPATIAL', 'IFC', 'MSTN', 'NWD', 'OBD', 'OPENTOWER', 'REVIT', 'SPPID', 'SPXREVIEW', 'PROSTRUCTURES', 'RVM', 'PSEXCEL', 'INTELLIPID'. Name of the Connector that is used for synchronization." }
Execution State
One of 'NotStarted', 'Idle', 'WaitingToExecute', 'WaitingToRetry', 'Executing', 'Finalizing', 'Completed', 'Queued'.
{ "enum": [ "NotStarted", "Idle", "WaitingToExecute", "WaitingToRetry", "Executing", "Finalizing", "Completed", "Queued" ], "type": "string", "title": "Execution State", "description": "One of 'NotStarted', 'Idle', 'WaitingToExecute', 'WaitingToRetry', 'Executing', 'Finalizing', 'Completed', 'Queued'." }
Execution Result
One of 'Undetermined', 'Success', 'Error', 'PartialSuccess', 'Skipped', 'Canceled', 'TimedOut'.
{ "enum": [ "Undetermined", "Success", "Error", "PartialSuccess", "Skipped", "Canceled", "TimedOut" ], "type": "string", "title": "Execution Result", "description": "One of 'Undetermined', 'Success', 'Error', 'PartialSuccess', 'Skipped', 'Canceled', 'TimedOut'." }
Suggested action
Error severity level
{ "enum": [ "Error", "Warning", "Info" ], "type": "string", "title": "Suggested action", "description": "Error severity level" }
Run error details
Error key.
More information about run error.
{ "type": "object", "title": "Run error details", "nullable": true, "properties": { "errorKey": { "type": "string", "description": "Error key." }, "description": { "type": "string", "description": "More information about run error." } }, "additionalProperties": false }
Manifest Connection Run
{ "type": "object", "title": "Manifest Connection Run", "properties": { "id": { "type": "string", "description": "A connection run id." }, "state": { "$ref": "#/components/schemas/execution-state" }, "result": { "$ref": "#/components/schemas/execution-result" } }, "additionalProperties": false }
Synchronization report
Error message explaining the result
Number of errors in the report
Number of warnings in the report
Number of other issues in the report
{ "type": "object", "title": "Synchronization report", "properties": { "message": { "type": "string", "description": "Error message explaining the result" }, "suggestedAction": { "$ref": "#/components/schemas/suggested-action" }, "totalErrorsCount": { "type": "integer", "description": "Number of errors in the report" }, "totalWarningsCount": { "type": "integer", "description": "Number of warnings in the report" }, "totalOtherIssuesCount": { "type": "integer", "description": "Number of other issues in the report" } }, "additionalProperties": false }
Runs (prefer return=minimal)
A set of manifest run entities representing a minimal number of properties.
{ "type": "object", "title": "Runs (prefer return=minimal)", "properties": { "runs": { "type": "array", "items": { "$ref": "#/components/schemas/manifest-minimal-run" }, "description": "A set of manifest run entities representing a minimal number of properties." }, "_links": { "$ref": "#/components/schemas/Links" } }, "additionalProperties": false }
Runs (prefer return=representation)
{ "type": "object", "title": "Runs (prefer return=representation)", "properties": { "runs": { "type": "array", "items": { "$ref": "#/components/schemas/manifest-run" }, "description": "A set of manifest run entities representing all manifest run properties." }, "_links": { "$ref": "#/components/schemas/Links" } }, "additionalProperties": false }
Was this page helpful?