Reality Analysis
This API is deprecated. Please upgrade to the current version of this API as soon as possible.
post https://qa-api.bentley.com/realitydataanalysis/detectors

Create a new detector.

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 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.

Request body

Detector create payload

Name
Type
Required?
Description

Example

json
{
    "detector": {
        "name": "traffic-signs",
        "displayName": "Traffic signs detector",
        "description": "Detects all traffic signs within a scene.",
        "type": "PhotoObjectDetector",
        "documentationUrl": "https://www.bentley.com",
        "version": "1.0",
        "labels": ["signs"],
        "exports": ["Objects"]
    }
}

Response 201 Created

This response indicates that the detector was successfully created.

json
{
    "detector": {
        "name": "traffic-signs",
        "displayName": "Traffic signs detector",
        "description": "Detects all traffic signs within a scene.",
        "type": "PhotoObjectDetector",
        "documentationUrl": "https://www.bentley.com",
        "versions": [{
            "creationDate": "2025-04-16T12:11:48.8662984+00:00",
            "version": "1.0",
            "status": "AwaitingData",
            "creatorId": "b4ebc9f7-31b3-482f-a2be-aaeb91516ebc",
            "capabilities": {
                "labels": ["signs"],
                "exports": ["Objects"]
            }
        }]
    },
    "_links": {
        "completeUrl": {
            "href": "detectors/traffic-signs/version/1.0/complete"
        },
        "uploadUrl": {
            "href": "https://cicsdetectorseussa01.blob.core.windows.net/78e3a82d-076e-4d1d-b8ef-ab0625fbb856/traffic-signs-1.0.zip?sv=2024-08-04&se=2025-04-16T12%3A31%3A48Z&sr=b&sp=w&sig=***REMOVED***"
        }
    }
}

Response 400 Bad Request

The 400 (Bad Request) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax).

json
{
    "error": {
        "code": "InvalidRealityDataAnalysisRequest",
        "message": "Cannot create detector.",
        "details": [{
            "code": "InvalidValue",
            "message": "Invalid detector type.",
            "target": "detector.type"
        }]
    }
}

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
{
    "$ref": "#/components/examples/401.HeaderNotFound.example"
}

Response 409 Conflict

This response indicates that the user tried to create a resource that already exists.

json
{
    "error": {
        "code": "DetectorExists",
        "message": "This version of the detector already exists.",
        "target": "detector.version"
    }
}

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.

link

Name
Type
Description
href
String

Hyperlink container.

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

message
String

A human-readable representation of the error.

DetailedError

Contains error information and an array of more specific errors.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

details

Optional array of more specific errors.

message
String

A human-readable representation 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.

Detector type

Available types for AI library detectors.

Name
Type
Description
PhotoObjectDetector
String
PhotoSegmentationDetector
String
OrthophotoSegmentationDetector
String
PointCloudSegmentationDetector
String

Detector version

Details of detector version.

Name
Type
Description
version
String

Version number.

creatorId
String

User Id of the version creator.

creationDate
Date-time

Creation date of the version.

Detector details

Details of detector.

Name
Type
Description
name
String

Name of the detector.

versions

All existing versions of the detector.

description
String

Description of the detector.

displayName
String

Display name of the detector.

documentationUrl
String

Url of the detector's documentation.

Detector export type

Available types for AI library detector exports.

Name
Type
Description
Objects
String
Lines
String
Polygons
String
Locations
String

Detailed 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 Detailed information.

Detector create details

Properties of the detector to be created.

Name
Type
Description
name
String

Name of the detector.

labels
String[]

Labels of the detector.

exports

Optional exports of the detector.

version
String

Version of the detector in X.Y format.

description
String

An optional description of the detector.

displayName
String

An optional display name of the detector.

documentationUrl
String

An optional URL to the detector's documentation.

Detector create payload

Name
Type
Description

Detector version status

Available types for AI library detector version status.

Name
Type
Description
AwaitingData
String
Ready
String

Detector create response

Response of detector create operation.

Name
Type
Description

Detector version capabilities

Capabilities of detector version.

Name
Type
Description
labels
String[]

Labels of the detector version.

exports

Exports of the detector version.

Detector creation links

Hyperlinks for further detector version upload and completion.

Name
Type
Description
uploadUrl
completeUrl

Was this page helpful?