Table of contents
Clash Detection
Download API definition:
This operation is deprecated. Please upgrade to the current version of this API as soon as possible.
GET https://api.bentley.com/clashdetection/results/{id}

Gets the clash detection result details for the specified result 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
id
Yes

Result 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
{
    "result": [{
        "clashType": "Collision",
        "clearance": -1,
        "elementAId": "0x20000000701",
        "elementALabel": "Pipe 6 1-SWS-0104",
        "elementACategoryIndex": 0,
        "elementAModelIndex": 0,
        "elementBId": "0x200000011a7",
        "elementBLabel": "Pipe 6 1-SWS-0107",
        "elementBCategoryIndex": 1,
        "elementBModelIndex": 0,
        "center": {
            "x": 39.01577949523926,
            "y": -20.889575958251953,
            "z": 5.114925384521484
        },
        "suppressingRuleIndexArray": [0],
        "status": "New"
    }],
    "categoryList": [{
            "id": "0x20000000047",
            "displayName": "SWS-1-SWS-0104"
        },
        {
            "id": "0x20000000049",
            "displayName": "SWS-1-SWS-0107"
        }
    ],
    "modelList": [{
        "id": "0x20000000030",
        "displayName": "3D-PLANT"
    }],
    "suppressingRuleList": [{
        "id": "ZuO3OCC8sUuVcgeXz1Ih_TGCT5rBByBBqcycpQKmKtY",
        "displayName": "test1"
    }]
}

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 result was not found.

json
{
    "error": {
        "code": "ClashDetectionResultNotFound",
        "message": "Requested result is not available."
    }
}

Response 429 Too many requests

This response indicates that the user has sent too many requests in a given amount of time.

json
{
    "error": {
        "code": "TooManyRequests",
        "message": "More requests were received than the subscription rate-limit allows."
    }
}

Response headers

Name
Description
retry-after

The number of requests exceeds the rate-limit for the client subscription.

Clash Detection Result

Name
Type
Description
result

Array of all the clashes in this clash detection result.

categoryList

Category lookup table.

modelList

Model lookup table.

suppressingRuleList

Suppression rule lookup table.

Clash Center

The clash center point.

Name
Type
Description
x
Number
y
Number
z
Number

Clash

The details for a clash between two elements.

Name
Type
Description
clashType
String

The type of clash detected - possible values: Collision, Clearance, Touching, Not Initialized.

clearance
Number

When the clash type is Clearance, the value is returned in meters. Otherwise -1 is returned.

elementAId
String

The unique id of element A.

elementALabel
String

The display label of element A.

elementACategoryIndex
Integer

The zero-based index used to lookup the element A category in the categoryList.

elementAModelIndex
Integer

The zero-based index used to lookup the element A model in the modelList.

elementBId
String

The unique id of element B.

elementBLabel
String

The display label of element B.

elementBCategoryIndex
Integer

The zero-based index used to lookup the element B category in the categoryList.

elementBModelIndex
Integer

The zero-based index used to lookup the element B model in the modelList.

center

The clash center point.

suppressingRuleIndexArray
Integer[]

The array of zero-based indices used to lookup the suppressing rules.

status
String

The status of clash result - possible values: New, Open, Resolved, Not Available.

Category Lookup Entry

Name
Type
Description
id
String

Unique identifier of the category.

displayName
String

Display name of the category.

Model Lookup Entry

Name
Type
Description
id
String

Unique identifier of the model.

displayName
String

Display name of the model.

Suppression Rule Lookup Entry

Name
Type
Description
id
String

Unique identifier of the suppression rule.

displayName
String

Display name of the suppression rule.

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.