Retrieves a list of clash detection suppression templates 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 100, maximum allowed is 500.
Parameter that enables continuing to the next page of the previous paged query. This must be passed exactly as it is in the response body.
Filters Rule Templates description based on input description.
Filters Rule Templates definitions based on input definition.
Request headers
OAuth access token with itwin-platform
scope
Setting to application/vnd.bentley.itwin-platform.v2+json
is recommended.
Response 200 OK
OK
{ "count": 2, "suppressionTemplates": [{ "id": "080c182c-c9ce-44e6-9932-de9f098befbc", "name": "Suppression/Definition/Generic/CompareProperties", "description": "Suppress clashes by comparing properties between the two clashing elements", "sampleText": "Suppress clashes if property -Property- on one of the clashing elements is -Operator- the same property on the other clashing element", "example": { "propertyKey": { "relationshipPath": "ArchitecturalPhysical:Door", "propertyName": "Roll" }, "operator": { "value": "=" } } }], "_links": { "self": { "href": "https://dev-api.bentley.com/apis/clash-detection-v2/operations/itwins/1b7d4045-a99e-441e-9318-93df23b49a57/suppression-templates" }, "next": { "href": "https://dev-api.bentley.com/apis/clash-detection-v2/operations/itwins/1b7d4045-a99e-441e-9318-93df23b49a57/suppression-templates?$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 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.
Reference for response pages
Link
The link to the page.
Suppression Rule Templates
Array of suppression rule templates
Number of suppression rule templates for the given itwin id.
Suppression Rule Template
The id of the suppression rule template.
The display name of the suppression rule template.
The description of the suppression rule template.
The prompt for the suppression rule template.
Suppression Rule Template Example
Error
Contains error information.
One of a server-defined set of error codes.
A human-readable representation of the error.
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.
Was this page helpful?