Clash Detection
Download API definition:
GET https://api.bentley.com/clash-detection/itwins/{itwinId}/suppression-rules/{id}

Retrieves the details of the clash detection suppression rule for the given rule 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

Rule id

itwinId
Yes

The iTwin Id

Request headers

Name
Required?
Description
Include-User-Metadata
No

Optional - Include user metadata when true.

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

OK

json
{
    "suppressionRule": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "templateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "createdBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Test Rule",
        "reason": "Clash Detection Test",
        "parameters": {
            "propertyName": "Pitch",
            "lowerBound": "1",
            "upperBound": "2"
        },
        "creationDate": "2024-04-23T17:09:59.008Z",
        "modificationDate": "2024-04-23T17:09:59.008Z",
        "lastModifiedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "userMetadata": {
            "createdBy": {
                "email": "TestUser@bentley.com",
                "name": "Test User"
            },
            "modifiedBy": {
                "email": "Test.User@bentley.com",
                "name": "Test User"
            }
        }
    }
}

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

json
{
    "error": {
        "code": "SuppressionRuleNotFound",
        "message": "Requested suppression rule is not available."
    }
}

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.

Clash Detection Suppression Rule

Name
Type
Description
id
String

The id of the suppression rule.

name
String

The name of the suppression rule.

templateId
String

The template id of the suppression rule.

reason
String

The reason for the suppression rule.

parameters
One of: objectstring, null

The parameters for the suppression rule.

creationDate
Date-time

The date/time when the suppression rule was created.

modificationDate
Date-time

The date/time when the suppression rule was last modified.

createdBy
String

Id of the user that created the suppression rule.

lastModifiedBy
String

Id of user that last modified the suppression rule.

userMetadata

The user metadata associated with the suppression rule.

User Details

User Details.

Name
Type
Description
createdBy

User details.

modifiedBy

User details.

Created By User Details

Created By User Details.

Name
Type
Description
name
String

Name of user that created the suppression rule.

email
String

Email id of user that created the suppression rule.

Modified By User Details

Modified By User Details.

Name
Type
Description
name
String

Name of user that modified the suppression rule.

email
String

Email of user that modified the suppression rule.

Clash Detection Suppression Rule

Clash detection suppression rule details

Name
Type
Description

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?