Reality Data Analysis
Download API definition:
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
PATCH https://qa-api.bentley.com/realitydataanalysis/jobs/{jobId}

Patch an existing job

Patch can be used for changing the job state (to active or cancelled), updating job type and settings or changing cost estimation parameters.

Authentication

Requires Authorization header with valid Bearer token for scope realitydataanalysis:modify.

For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.

Request parameters

Name
Required?
Description
jobId
Yes

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with scope realitydataanalysis:modify

Accept
No

Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.

Request body

Job Patch

Name
Type
Required?
Description
state
No

Only 'Active' or 'Cancelled' are valid values, see tutorials.

costEstimationParameters
No

New cost estimation parameters.

type
No

New job type (requires compatible settings)

settings
No

New settings for this job, must be in sync with type

Example

json
{
    "type": "objects2D",
    "settings": {
        "inputs": [{
                "name": "photos",
                "realityDataId": "e9803e0e-70ce-4ea6-b2ad-1c653cbf2f76"
            },
            {
                "name": "photoObjectDetector",
                "realityDataId": "111d3524-2bd3-46c4-9bf4-e0c650f5f8f2"
            }
        ],
        "outputs": ["objects2D"]
    }
}

Job Patch

Name
Type
Required?
Description
state
No

Only 'Active' or 'Cancelled' are valid values, see tutorials.

costEstimationParameters
No

New cost estimation parameters.

type
No

New job type (requires compatible settings)

settings
No

New settings for this job, must be in sync with type

Example

json
{
    "costEstimationParameters": {
        "gigaPixels": 2,
        "numberOfPhotos": 150
    }
}

Job Patch

Name
Type
Required?
Description
state
No

Only 'Active' or 'Cancelled' are valid values, see tutorials.

costEstimationParameters
No

New cost estimation parameters.

type
No

New job type (requires compatible settings)

settings
No

New settings for this job, must be in sync with type

Example

json
{
    "state": "active"
}

Response 200 OK

Created

json
{
    "job": {
        "state": "unsubmitted",
        "settings": {
            "outputs": [{
                "name": "objects2D",
                "realityDataId": "00000000-0000-0000-0000-000000000000"
            }],
            "inputs": [{
                    "name": "photos",
                    "realityDataId": "00000000-0000-0000-0000-000000000000"
                },
                {
                    "name": "photoObjectDetector",
                    "realityDataId": "00000000-0000-0000-0000-000000000000"
                }
            ]
        },
        "createdDateTime": "2021-11-04T14:13:27Z",
        "lastModifiedDateTime": "2021-11-04T14:13:27Z",
        "id": "6f51448f-6377-4330-9ab0-f13fe994b3f1",
        "email": "Joffrey.Germain@bentley.com",
        "dataCenter": "EastUs",
        "type": "objects2D",
        "name": "My first objects2D job",
        "projectId": "510cd1a3-3703-4729-b08c-fecd9c87c3be",
        "costEstimation": {
            "gigaPixels": 2,
            "sceneWidth": 4.5,
            "sceneHeight": 3.0,
            "sceneLength": 1.7,
            "detectorScale": 1.2,
            "detectorCost": 1.4,
            "numberOfPhotos": 150,
            "estimatedCost": 2.1
        }
    }
}

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": "Unauthorized",
        "message": "Access denied due to invalid access_token. Make sure to provide a valid token for this API endpoint."
    }
}

Response 404 Not Found

Not Found

json
{
    "error": {
        "code": "JobNotFound",
        "message": "Requested job 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).

json
{
    "error": {
        "code": "InvalidRealityDataAnalysisRequest",
        "message": "Cannot modify job.",
        "details": [{
            "code": "InvalidChange",
            "message": "Cannot resubmit an already submitted job."
        }]
    }
}

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.

Job type

Available job types among 'objects2D', 'segmentation2D'.

Name
Type
Description
objects2D
String
segmentation2D
String

Job state

Possible state of a job among 'unsubmitted', 'active', 'success', 'failed' and 'cancelled'.

Name
Type
Description
unsubmitted
String
active
String
success
String
failed
String
cancelled
String

Input format

Input format available for inputs. Refer to tutorials for per job type list.

Name
Type
Description
photos
String
photoObjectDetector
String

Job Input

Input description for an Objects 2D job

Name
Type
Description
name

Input name

realityDataId
String

Reality Data id of the input

Input format

Input format available for inputs. Refer to tutorials for per job type list.

Name
Type
Description
photos
String
photoSegmentationDetector
String
orthophoto
String
orthophotoSegmentationDetector
String

Job Input

Input description for a Segmentation 2D job

Name
Type
Description
name

Input name

realityDataId
String

Reality Data id of the input

Output format

Output format available for outputs. Refer to tutorials for per job type list.

Name
Type
Description
objects2D
String
segmentation2D
String

Job Output

Output description for a job

Name
Type
Description
name

Output name

realityDataId
String, null

Reality Data id of the output

Input Objects2D Settings

Settings for an Objects2D job

Name
Type
Description
inputs

List of inputs of the job

outputs

List of output formats of the job

Input Segmentation2D Settings

Input settings for a Segmentation2D job

Name
Type
Description
inputs

List of inputs of the job

outputs

List of output formats of the job

Cost Estimation Parameters

Optional parameters for estimating job cost before its processing

Name
Type
Description
gigaPixels
Double, null

Number of giga pixels in inputs

numberOfPhotos
Int32, null

Number of photos in inputs

sceneWidth
Double, null

Width of the scene

sceneHeight
Double, null

Height of the scene

sceneLength
Double, null

Length of the scene

detectorScale
Double, null

Scale of the detector

detectorCost
Double, null

Cost of the detector

Job Patch

Patch information to be applied

Name
Type
Description
state

Only 'Active' or 'Cancelled' are valid values, see tutorials.

costEstimationParameters

New cost estimation parameters.

type

New job type (requires compatible settings)

settings

New settings for this job, must be in sync with type

Complete Objects2D Settings

Settings for an Objects2D job

Name
Type
Description
inputs

List of inputs of the job

outputs

List of output formats of the job

Complete Segmentation2D Settings

Settings for an Segmentation2D job

Name
Type
Description
inputs

List of inputs of the job

outputs

List of output formats of the job

Execution information

Execution details regarding a job

Name
Type
Description
exitCode
Integer, null

Exit code of the processing

submissionDateTime
Date-time, null

Submission date time of the job

startedDateTime
Date-time, null

Start date time of the job

endedDateTime
Date-time, null

End date time of the job

estimatedUnits
Double, null

Estimated cost of the executed job

Cost Estimation information

Cost estimate based on parameters before job processing

Name
Type
Description
gigaPixels
Double, null

Number of giga pixels in inputs

numberOfPhotos
Int32, null

Number of photos in inputs

sceneWidth
Double, null

Width of the scene

sceneHeight
Double, null

Height of the scene

sceneLength
Double, null

Length of the scene

detectorScale
Double, null

Scale of the detector

detectorCost
Double, null

Cost of the detector

estimatedCost
Double

Estimated Cost of the job using the CostEstimationParameters

Job

Job complete details

Name
Type
Description
id
String

Job id

email
String

User email address

state

Job state

type

Job type

name
String

Job name

projectId
String

Project Id

settings

Settings for this job, must be in sync with type

createdDateTime
Date-time

Created date time of the job

lastModifiedDateTime
Date-time

Date time of the latest modification of the job

executionInformation

Execution Information of the job

costEstimation

Cost estimation before job processing

dataCenter
String

Data center location of the job

Job response

Name
Type
Description
job

Complete job details

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

One of a server-defined set of error codes.

error.message
String

A human-readable representation of the error.

Error

Contains error information and an optional array of more specific errors.

Name
Type
Description
code
String

One of a server-defined set of error codes.

message
String

A human-readable representation of the error.

details

Optional array of more specific errors.

Error Details

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.

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?