Table of contents
Reality Conversion
Download API definition:
This API is a Technical Preview and is available for testing purposes only. Do not use in production.
PATCH https://api.bentley.com/realityconversion/jobs/{id}

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

Authentication

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

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

Request parameters

Name
In
Required?
Description
id
template
Yes

Job Id.

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with scope realityconversion:modify

Accept
Yes

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

Request body

Job Patch

Name
Type
Required?
Description
state
String
No

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters
No

New cost estimation parameters.

type
String
No

New job type.

inputs
No

List of new inputs of the job

outputs
No

New Output for Job. Possible value is OPC or PNTS.

options
No

New options for job.

Example

json
{
    "costEstimationParameters": {
        "gigaPixels": 2.5,
        "megaPoints": 1.7
    }
}

Job Patch

Name
Type
Required?
Description
state
String
No

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters
No

New cost estimation parameters.

type
String
No

New job type.

inputs
No

List of new inputs of the job

outputs
No

New Output for Job. Possible value is OPC or PNTS.

options
No

New options for job.

Example

json
{
    "state": "active"
}

Job Patch

Name
Type
Required?
Description
state
String
No

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters
No

New cost estimation parameters.

type
String
No

New job type.

inputs
No

List of new inputs of the job

outputs
No

New Output for Job. Possible value is OPC or PNTS.

options
No

New options for job.

Example

json
{
    "type": "Conversion"
}

Job Patch

Name
Type
Required?
Description
state
String
No

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters
No

New cost estimation parameters.

type
String
No

New job type.

inputs
No

List of new inputs of the job

outputs
No

New Output for Job. Possible value is OPC or PNTS.

options
No

New options for job.

Example

json
{
    "inputs": [{
        "id": "18e0c0ca-f730-4e5b-808d-1c8cacacb4d4"
    }]
}

Job Patch

Name
Type
Required?
Description
state
String
No

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters
No

New cost estimation parameters.

type
String
No

New job type.

inputs
No

List of new inputs of the job

outputs
No

New Output for Job. Possible value is OPC or PNTS.

options
No

New options for job.

Example

json
{
    "outputs": [
        "PNTS"
    ]
}

Job Patch

Name
Type
Required?
Description
state
String
No

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters
No

New cost estimation parameters.

type
String
No

New job type.

inputs
No

List of new inputs of the job

outputs
No

New Output for Job. Possible value is OPC or PNTS.

options
No

New options for job.

Example

json
{
    "options": {
        "processingEngines": 2,
        "merge": true
    }
}

Response 200 OK

Job was successfully updated.

json
{
    "job": {
        "id": "cc3d35cc-416a-4262-9714-b359da70b419",
        "name": "My first RCS job",
        "type": "Conversion",
        "state": "active",
        "createdDateTime": "2020-09-14T14:29:55Z",
        "lastModifiedDateTime": "2020-09-14T14:29:55Z",
        "iTwinId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "email": "example@email.com",
        "dataCenter": "East US",
        "inputs": [{
            "id": "58e0c0ca-f730-4e5b-808d-1c8cacacb4d4",
            "type": "LAS"
        }],
        "outputs": [{
            "id": "3ddee08c-01e8-44a5-8e56-3879109f6728",
            "type": "OPC"
        }],
        "options": {
            "processingEngines": 5,
            "merge": false
        },
        "costEstimation": {
            "estimatedCost": 3.5,
            "gigaPixels": 2.1,
            "megaPoints": 1.5
        }
    }
}

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

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": "InvalidRealityConversionRequest",
        "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.

Cost Estimation Parameters

Parameters to be used to estimate the cost of the job

TableSchema
Name
Type
Description
gigaPixels
Number

Gigapixels to be processed

megaPoints
Number

Megapoints to be processed

Cost Estimation information

Cost estimate based on parameters before job processing

TableSchema
Name
Type
Description
gigaPixels
Double

Number of giga pixels in inputs

megaPoints
Double

Number of mega points in inputs

estimatedCost
Double

Estimated Cost of the job using the CostEstimationParameters

Execution Info

Execution information of the job

TableSchema
Name
Type
Description
submissionDateTime
Date-time

Submission time of the job

startedDateTime
Date-time

Start time of the job

endedDateTime
Date-time

End time of the job

estimatedUnits
Number,null

Estimated processing units cost

Job

Job information

TableSchema
Name
Type
Description
id
String

Job unique id

name
String

Job name

type
String

Job type

state
String

Job current state

iTwinId
String

iTwin Id

createdDateTime
Date-time

Creation time of the job

lastModifiedDateTime
Date-time

Last modification date of the job

dataCenter
String

Datacenter location of the job

executionInformation

Execution information of the job

costEstimation

Parameters to be used to estimate the cost of the job

inputs

List of inputs of the job

outputs

List of outputs of a job

options

List of optional parameters to create job

Job response

TableSchema
Name
Type
Description
job

Complete job details

Job Patch

Patch information to be applied

TableSchema
Name
Type
Description
state
String

New job state. Possible values SHOULD be either 'active' or 'cancelled'.

costEstimationParameters

New cost estimation parameters.

type
String

New job type.

inputs

List of new inputs of the job

outputs

New Output for Job. Possible value is OPC or PNTS.

options

New options for job.

Job Input

Input description for a job.

TableSchema
Name
Type
Description
type
String

Input type for a job. Possible values SHOULD be among LAS, LAZ, PLY or E57.

id
String

Id of the input.

Job Output

Output description for a job.

TableSchema
Name
Type
Description
format
String

Output format for a job. Possible value is OPC or PNTS.

Job Input

Input description for a job.

TableSchema
Name
Type
Description
id
String

Id of the input.

Job Output

List of available output formats.

TableSchema
Name
Type
Description
No data.

Options

List of optional parameters to create job

TableSchema
Name
Type
Description
processingEngines
Integer

Number of engines to be used at most, between 0 and your engine limit. If set at 0, RCS will use your engine limit.

merge
Boolean

If true, then all the input files from multiple containers will be merged into one output file. Else output file will be created per input file.

DetailedError

Contains error information and an array of more specific errors.

TableSchema
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

The target of the error.

details

Optional array of more specific errors.

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.

TableSchema
Name
Type
Description
error

Error Detailed information.

Error

Contains error information.

TableSchema
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

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.

TableSchema
Name
Type
Description
error

Error information.