Create a new job based on its type and options
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
OAuth access token with itwin-platform
scope
Setting to application/vnd.bentley.itwin-platform.v1+json
is recommended.
Request body
Job Create
Job name
ITwin Id
Options for this job, must be in sync with type
Optional cost estimation parameters to estimate the job cost before its processing.
Example
{ "name": "My first objects2D job", "iTwinId": "510cd1a3-3703-4729-b08c-fecd9c87c3be", "type": "objects2D", "inputs": [{ "type": "photos", "id": "e9803e0e-70ce-4ea6-b2ad-1c653cbf2f76" }, { "type": "photoObjectDetector", "id": "111d3524-2bd3-46c4-9bf4-e0c650f5f8f2" } ], "outputs": ["objects2D"], "options": { "minPhotos": 2, "useTiePoints": true }, "costEstimationParameters": { "gigaPixels": 2, "sceneWidth": 4.5, "sceneHeight": 3.0, "sceneLength": 1.7, "detectorScale": 1.2, "detectorCost": 1.4, "numberOfPhotos": 150 } }
Response 201 Created
Created
{ "job": { "state": "unsubmitted", "outputs": [{ "type": "objects2D" }], "inputs": [{ "type": "photos", "id": "e9803e0e-70ce-4ea6-b2ad-1c653cbf2f76" }, { "type": "photoObjectDetector", "id": "111d3524-2bd3-46c4-9bf4-e0c650f5f8f2" } ], "options": { "minPhotos": 2, "useTiePoints": true }, "createdDateTime": "2021-11-04T14:13:27Z", "lastModifiedDateTime": "2021-11-04T14:13:27Z", "id": "6f51448f-6377-4330-9ab0-f13fe994b3f1", "email": "example@email.com", "dataCenter": "EastUs", "type": "objects2D", "name": "My first objects2D job", "iTwinId": "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.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
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).
{ "error": { "code": "InvalidRealityDataAnalysisRequest", "message": "Cannot create job.", "details": [{ "code": "InvalidProperty", "message": "Required property 'iTwinId' is invalid.", "target": "iTwinId" }] } }
Response 429 Too many requests
This response indicates that the user has sent too many requests in a given amount of time.
{ "error": { "code": "TooManyRequests", "message": "More requests were received than the subscription rate-limit allows." } }
Response headers
The number of requests exceeds the rate-limit for the client subscription.
Job type
Available job types among 'objects2D', 'segmentation2D', 'segmentation3D', 'segmentationOrthophoto' and 'changeDetection'.
Job state
Possible state of a job among 'unsubmitted', 'active', 'success', 'failed' and 'cancelled'.
Input types
Input types available. Refer to 'Job types' page for per job type list.
Job Input
Input description for a job
Reality Data id of the input
Output types
Output types available. Refer to 'Job types' page for per job type list.
Job Output
Output description for a job
Reality Data id of the output
Objects2D Options
Options for Object2D job
Improve detection using tie points in orientedPhotos (advanced)
Minimum number of 2D objects to generate a 3D object (default: 0)
Maximum distance between photos and 3D objects (default: 0)
SRS used by exports
Segmentation2D Options
Options for Segmentation2D job
Minimum number of 2D objects to generate a 3D object (default: 0)
Estimate 3D line width at each vertex
Remove 3D lines with total length smaller than this value
SRS used by exports
SegmentationOrthophoto Options
Options for SegmentationOrthophoto job
Segmentation3D Options
Options for Segmentation3D job
Estimate 3D line width at each vertex
Remove 3D lines with total length smaller than this value
SRS used by exports
Save confidence in 3D segmentation
ChangeDetection Options
Options for a ChangeDetection job
Low threshold to detect color changes (hysteresis detection). 0 to ignore color changes
High threshold to detect color changes (hysteresis detection). 0 to ignore color changes
Low threshold to detect spatial changes (hysteresis detection). 0 for automatic setting
High threshold to detect spatial changes (hysteresis detection). 0 for automatic setting
Target point cloud resolution when starting from meshes
Minimum number of points in a region to be considered as a change
SRS used by exports
Cost Estimation Parameters
Optional parameters for estimating job cost before its processing
Number of giga pixels in inputs
Number of photos in inputs
Width of the scene
Height of the scene
Length of the scene
Scale of the detector
Cost of the detector
Job Create
Model for creating a new job
Job name
ITwin Id
Options for this job, must be in sync with type
Optional cost estimation parameters to estimate the job cost before its processing.
Error and Warning messages
Model for error and warning messages
Error or warning message code
Error or warning message title
Error or warning message
Error or warning message parameters
Execution information
Execution details regarding a job
Exit code of the processing
Submission date time of the job
Start date time of the job
End date time of the job
Estimated cost of the executed job
Cost Estimation information
Cost estimate based on parameters before job processing
Number of giga pixels in inputs
Number of photos in inputs
Width of the scene
Height of the scene
Length of the scene
Scale of the detector
Cost of the detector
Estimated Cost of the job using the CostEstimationParameters
Job
Job details
Job id
User email address
Job name
ITwin Id
Options for this job, must be in sync with type
Created date-time of the job
Date-time of the latest modification of the job
Data center location of the job
Job response
DetailedError
Contains error information and an array of more specific errors.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
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.
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.