Retrieves the clash detection reports for the specified iTwin 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
The iTwin Id
Limit of entries on one page. Default value is 10, maximum allowed is 100.
Token for next set of data.
Request headers
Repository id (iModel id) of the clash report that needs to be retrieved.
Optional - Include user metadata when true.
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v2+json is recommended.
Response 200 OK
OK
{ "count": 2, "reports": [{ "iTwinId": "384ebc14-d362-4a5a-8dce-0a5b3ebbe8ba", "repositoryId": "721e1260-6549-4216-a689-be80cc6648cf", "changesetId": "a8a3a9ad-862e-4ee9-8d88-c2bd220a8f57", "configurationId": "772c3f9d-4445-4c2d-9b4e-127827b4f8b2", "executed": "2023-06-17T14:45:47.6600000+00:00", "duration": 0, "numValidations": 102, "numElements": 31, "numRules": 7, "numIssues": 2, "status": 1, "userId": "76c4a684-fbdf-44e3-ae9b-dbdf9de1dbf2", "testSettings": { "resultsLimit": 10 }, "jobId": "e0e5ca59-4b5f-433d-a5ee-5a825e734782", "configurationName": "string", "changesetName": "version 1", "repositoryName": "Test iModel", "modifiedBy": "string", "modifiedAt": "2023-09-17T14:45:47.6600000+00:00", "userMetadata": { "createdBy": { "email": "Test.User@bentley.com", "name": "Test User" }, "modifiedBy": { "email": "Test.User@bentley.com", "name": "Test User" } }, "vStatuses": { "new": 0, "open": 0, "resolved": 0, "ms": 0, "rs": 0, "multiSup": 0 }, "id": "e4298853-b4d0-4cc6-9b5c-1003bcbf31a9" }], "_links": { "self": { "href": "https://dev-api.bentley.com/apis/clash-detection-v2/operations/itwins/1b7d4045-a99e-441e-9318-93df23b49a57/reports" }, "next": { "href": "https://dev-api.bentley.com/apis/clash-detection-v2/operations/itwins/1b7d4045-a99e-441e-9318-93df23b49a57/reports?$top=1&$continuationToken=Mg==" }, "prev": null } }
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 iTwin was not found.
{ "error": { "code": "iTwinNotFound", "message": "Requested iTwin is not available." } }
Response 422 Unprocessable Entity
The 422 (Unprocessable Entity) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax)
{ "error": { "code": "InvalidClashDetectionReportsRequest", "message": "Invalid clash detection reports request." } }
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.
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 }
Link
The link to the page.
{ "type": "object", "title": "Link", "properties": { "href": { "type": "string", "nullable": true, "description": "The link to the page." } }, "additionalProperties": false }
Reference for response pages
{ "type": "object", "title": "Reference for response pages", "properties": { "next": { "$ref": "#/components/schemas/href-link" }, "prev": { "$ref": "#/components/schemas/href-link" }, "self": { "$ref": "#/components/schemas/href-link" } }, "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 }
Clash-results-rows
Clash report details.
Unique id of the clash report.
Unique id for the job.
The status of the clash detection run. Started = 0, Completed = 1, Failed = 2.
Unique id of user that started the run.
The unique id of iTwin.
Duration of the validation run.
Execution date time of validation run.
Number of rules processed.
Number of issues generated.
Modification date time of validation run.
Unique id of user that modified the run.
The unique id of changeset.
Number of elements processed.
The unique id of iModel.
The name of the changeset.
Number of validations that occurred..
The name of the iModel.
The unique id of configuration.
The name of the configuration.
{ "type": "object", "properties": { "id": { "type": "string", "description": "Unique id of the clash report." }, "jobId": { "type": "string", "description": "Unique id for the job." }, "status": { "type": "number", "description": "The status of the clash detection run. Started = 0, Completed = 1, Failed = 2." }, "userId": { "type": "string", "description": "Unique id of user that started the run." }, "iTwinId": { "type": "string", "description": "The unique id of iTwin." }, "duration": { "type": "number", "description": "Duration of the validation run." }, "executed": { "type": "string", "format": "date-time", "description": "Execution date time of validation run." }, "numRules": { "type": "number", "description": "Number of rules processed." }, "numIssues": { "type": "number", "description": "Number of issues generated." }, "vStatuses": { "$ref": "#/components/schemas/get-results-vStatuses" }, "modifiedAt": { "type": "string", "format": "date-time", "description": "Modification date time of validation run." }, "modifiedBy": { "type": "string", "description": "Unique id of user that modified the run." }, "changesetId": { "type": "string", "description": "The unique id of changeset." }, "numElements": { "type": "number", "description": "Number of elements processed." }, "repositoryId": { "type": "string", "description": "The unique id of iModel." }, "testSettings": { "$ref": "#/components/schemas/clash-detection-test-settings" }, "userMetadata": { "$ref": "#/components/schemas/get-test-result-usermetadata" }, "changesetName": { "type": "string", "description": "The name of the changeset." }, "numValidations": { "type": "number", "description": "Number of validations that occurred.." }, "repositoryName": { "type": "string", "description": "The name of the iModel." }, "configurationId": { "type": "string", "description": "The unique id of configuration." }, "configurationName": { "type": "string", "description": "The name of the configuration." } }, "description": "Clash report details.", "additionalProperties": false }
Validation Statuses
Validation Statuses
A clash that is exclusively suppressed manually. (A clash that is manually suppressed, not rules suppressed and is not Resolved)
A clash that is exclusively rule suppressed. (A clash that is rule suppressed and is not Resolved)
A clash that shows up for the first time.
A clash that existed previously and shows up again.
A clash that is suppressed both by a rule and manually suppressed. (A clash that is both manually suppressed and rule suppressed and is not Resolved)
A clash that is not seen anymore (due to a design change or a clash test change).
{ "type": "object", "title": "Validation Statuses", "properties": { "ms": { "type": "number", "description": "A clash that is exclusively suppressed manually. (A clash that is manually suppressed, not rules suppressed and is not Resolved)" }, "rs": { "type": "number", "description": "A clash that is exclusively rule suppressed. (A clash that is rule suppressed and is not Resolved)" }, "new": { "type": "number", "description": "A clash that shows up for the first time." }, "open": { "type": "number", "description": "A clash that existed previously and shows up again." }, "multiSup": { "type": "number", "description": "A clash that is suppressed both by a rule and manually suppressed. (A clash that is both manually suppressed and rule suppressed and is not Resolved)" }, "resolved": { "type": "number", "description": "A clash that is not seen anymore (due to a design change or a clash test change)." } }, "description": "Validation Statuses", "additionalProperties": false }
Clash Detection Results
Results count for the given iTwin.
{ "type": "object", "title": "Clash Detection Results", "properties": { "count": { "type": "number", "description": "Results count for the given iTwin." }, "_links": { "$ref": "#/components/schemas/get-page-ref" }, "reports": { "type": "array", "items": { "$ref": "#/components/schemas/Clash-results-rows" }, "description": "Array of clash reports." } }, "additionalProperties": false }
User Details
User Details.
{ "type": "object", "title": "User Details", "properties": { "createdBy": { "$ref": "#/components/schemas/result-usermetadata-createdby" }, "modifiedBy": { "$ref": "#/components/schemas/result-usermetadata-modifiedby" } }, "description": "User Details.", "additionalProperties": false }
Clash Detection Test Settings
{ "type": "object", "title": "Clash Detection Test Settings", "properties": { "resultsLimit": { "oneOf": [ { "type": "number" }, { "type": "string" } ], "description": "The maximum clash/failure limit for the clash detection test. Default is 100000." } }, "additionalProperties": false }
Created By User Details
Created By User Details.
Name of user that created the run.
Email id of user that created the run.
{ "type": "object", "title": "Created By User Details", "properties": { "name": { "type": "string", "description": "Name of user that created the run." }, "email": { "type": "string", "description": "Email id of user that created the run." } }, "description": "Created By User Details.", "additionalProperties": false }
Modified By User Details
Modified By User Details.
Name of user that modified the run.
Email of user that modified the run.
{ "type": "object", "title": "Modified By User Details", "properties": { "name": { "type": "string", "description": "Name of user that modified the run." }, "email": { "type": "string", "description": "Email of user that modified the run." } }, "description": "Modified By User Details.", "additionalProperties": false }
Was this page helpful?