Create a new job. The POST request body MUST include type, name, inputs and outputs.
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.
Example
{ "type": "Conversion", "name": "My first RCS job", "iTwinId": "510cd1a3-3703-4729-b08c-fecd9c87c3be", "costEstimationParameters": { "gigaPixels": 2.5, "megaPoints": 1.5 }, "inputs": [{ "id": "58e0c0ca-f730-4e5b-808d-1c8cacacb4d4" }], "outputs": ["OPC"], "options": { "processingEngines": 5, "merge": false } }
Response 201 Created
Created
{ "job": { "id": "cc3d35cc-416a-4262-9714-b359da70b419", "name": "My first RCS job", "type": "Conversion", "state": "unsubmitted", "createdDateTime": "2021-11-04T02:13:27Z", "lastModifiedDateTime": "2020-09-14T02:29:55Z", "iTwinId": "510cd1a3-3703-4729-b08c-fecd9c87c3be", "email": "example@email.com", "dataCenter": "East US", "inputs": [{ "id": "58e0c0ca-f730-4e5b-808d-1c8cacacb4d4", "type": "LAS" }], "outputs": [{ "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.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 403 Forbidden
This response indicates that user does not have required permissions to create a job.
{ "error": { "code": "InsufficientPermissions", "message": "The user has insufficient permissions for the requested operation." } }
Response 404 Not Found
This response indicates that the requested operation or resource could not be found.
{ "error": { "code": "ResourceNotFound", "message": "The requested resource was not found. Verify the API URL and the Accept header.", "details": [{ "code": "OperationNotFound", "message": "Unable to match incoming request to an operation." }] } }
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": "InvalidRealityConversionRequest", "message": "Cannot create job.", "details": [{ "code": "InvalidProperty", "message": "The Name field is required.", "target": "Name" }] } }
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.
Job Type
Possible values:
- Conversion: Converts input data from one format to another.
- ImportFeatures: Takes vector inputs and imports features into a feature class of Geospatial Features API. Use
FDBas the output format for this type.
{ "title": "Job Type", "enum": [ "Conversion", "ImportFeatures" ], "type": "string", "description": "Possible values:\n- Conversion: Converts input data from one format to another.\n- ImportFeatures: Takes vector inputs and imports features into a feature class of Geospatial Features API. Use `FDB` as the output format for this type." }
Job State
Job state.
{ "title": "Job State", "enum": [ "unsubmitted", "active", "success", "failed", "cancelled" ], "type": "string", "description": "Job state." }
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
{ "title": "Error and Warning messages", "type": "object", "properties": { "code": { "type": "string", "description": "Error or warning message code" }, "title": { "type": "string", "description": "Error or warning message title" }, "message": { "type": "string", "description": "Error or warning message" }, "params": { "type": "array", "description": "Error or warning message parameters" } }, "additionalProperties": false, "description": "Model for error and warning messages" }
Execution Info
Execution information of the job.
Submission time of the job.
Start time of the job.
End time of the job.
Estimated processing units cost.
{ "title": "Execution Info", "required": [ "submissionDateTime" ], "type": "object", "properties": { "submissionDateTime": { "type": "string", "description": "Submission time of the job.", "format": "date-time" }, "startedDateTime": { "type": "string", "description": "Start time of the job.", "format": "date-time", "nullable": true }, "endedDateTime": { "type": "string", "description": "End time of the job.", "format": "date-time", "nullable": true }, "estimatedUnits": { "type": "number", "description": "Estimated processing units cost.", "nullable": true }, "errors": { "type": "array", "items": { "$ref": "#/components/schemas/ErrorWarningMessage" }, "description": "Errors, if any produced when processing the job", "nullable": true }, "warnings": { "type": "array", "items": { "$ref": "#/components/schemas/ErrorWarningMessage" }, "description": "Warnings, if any produced when processing the job", "nullable": true } }, "additionalProperties": false, "description": "Execution information of the job." }
Cost Estimation Information
Cost estimate based on parameters before job processing.
Number of giga pixels in inputs.
Number of mega points in inputs.
Estimated cost of the job using the CostEstimationParameters.
{ "title": "Cost Estimation Information", "type": "object", "properties": { "gigaPixels": { "type": "number", "description": "Number of giga pixels in inputs.", "format": "double", "nullable": true }, "megaPoints": { "type": "number", "description": "Number of mega points in inputs.", "format": "double", "nullable": true }, "estimatedCost": { "type": "number", "description": "Estimated cost of the job using the CostEstimationParameters.", "format": "double" } }, "additionalProperties": false, "description": "Cost estimate based on parameters before job processing." }
Point Cloud Input Formats
List of available input formats for point cloud conversion.
{ "title": "Point Cloud Input Formats", "enum": [ "LAS", "LAZ", "PLY", "E57", "OPC", "PointCloud", "PNTS", "Cesium3DTiles" ], "description": "List of available input formats for point cloud conversion." }
Vector Input Formats
List of available input formats for vector conversion.
{ "title": "Vector Input Formats", "enum": [ "ContextScene", "GeoJSON", "OVF", "OVT", "SHP" ], "description": "List of available input formats for vector conversion." }
Tile Map Input Formats
Input types representing raster or tiled datasets for generating tile maps.
{ "title": "Tile Map Input Formats", "enum": [ "Orthophoto", "OrthophotoDSM", "OMI", "OVF", "OVT" ], "description": "Input types representing raster or tiled datasets for generating tile maps." }
Job Input
Input description for a job.
Reality data Id of the input.
{ "title": "Job Input", "type": "object", "properties": { "type": { "oneOf": [ { "$ref": "#/components/schemas/PointCloudInputs" }, { "$ref": "#/components/schemas/VectorInputs" }, { "$ref": "#/components/schemas/TileMapInputs" } ], "description": "Input format for a job." }, "id": { "type": "string", "description": "Reality data Id of the input." } }, "additionalProperties": false, "description": "Input description for a job." }
Point Cloud Output Formats
List of available point cloud output formats.
- OPC: Orbit Point Cloud
- PNTS: OGC 3DTiles Point Cloud 1.0
- GLB: OGC 3DTiles Point Cloud 1.1
- GLBC: OGC 3DTiles Point Cloud 1.1 Compressed.
{ "title": "Point Cloud Output Formats", "enum": [ "OPC", "PNTS", "GLB", "GLBC", "LAS", "LAZ", "E57", "PointCloud" ], "description": "List of available point cloud output formats.\n- OPC: Orbit Point Cloud\n- PNTS: OGC 3DTiles Point Cloud 1.0\n- GLB: OGC 3DTiles Point Cloud 1.1\n- GLBC: OGC 3DTiles Point Cloud 1.1 Compressed." }
Vector Output Formats
List of available vector output formats.
- Use FDB as the output format when the job type is ImportFeatures.
{ "title": "Vector Output Formats", "enum": [ "GeoJSON", "FDB" ], "description": "List of available vector output formats.\n\n - Use FDB as the output format when the job type is ImportFeatures." }
Tile Map Output Formats
List of available tile map output formats.
{ "title": "Tile Map Output Formats", "enum": [ "XYZTileMap" ], "description": "List of available tile map output formats." }
Job Output
Output description for a job.
Reality data Id of the output.
{ "title": "Job Output", "type": "object", "properties": { "type": { "oneOf": [ { "$ref": "#/components/schemas/PointCloudOutputs" }, { "$ref": "#/components/schemas/VectorOutputs" }, { "$ref": "#/components/schemas/TileMapOutputs" } ], "description": "Output format for a job." }, "id": { "type": "string", "description": "Reality data Id of the output.", "nullable": true } }, "additionalProperties": false, "description": "Output description for a job." }
Options
List of optional parameters.
Number of engines to be used at most, between 0 and your engine limit. If set at 0, RCS will use your engine limit.
If true, then all the input files from multiple containers will be merged into one output file. Otherwise, creates one output per input file. Valid only for Conversion jobs.
EPSG code for the spatial reference system of input files (horizontal or horizontal+vertical).
EPSG code for the spatial reference system of output files (horizontal or horizontal+vertical).
Sampling step size in meters for traversing triangles in mesh geometry. Default is 0.125. Only valid for Cesium3DTiles input.
Name of the feature class to create in the Geospatial Features API. If omitted, uses the input reality data display name. Only valid for ImportFeatures jobs.
Top level of the tile map to generate. Default is -1 (single tile for all input data). Only valid for TileMap output.
Bottom level of the tile map to generate. Default is -1 (closest to native resolution). Only valid for TileMap output.
Tile format for the tile map. Supported values are 'JPG' (default) and 'PNG'. Only valid for TileMap output.
Quality of JPG tiles to generate (10–99). Default is 85. Only valid for TileMap output.
Background color to use for tiles, in 'r.g.b' where r,g,b (red,green,blue) are values 0..255, default value is '255.255.255' (white). Only valid for TileMap output.
{ "title": "Options", "type": "object", "properties": { "processingEngines": { "type": "integer", "description": "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": { "type": "boolean", "description": "If true, then all the input files from multiple containers will be merged into one output file. Otherwise, creates one output per input file. Valid only for Conversion jobs." }, "inputSRS": { "type": "string", "description": "EPSG code for the spatial reference system of input files (horizontal or horizontal+vertical)." }, "outputSRS": { "type": "string", "description": "EPSG code for the spatial reference system of output files (horizontal or horizontal+vertical)." }, "sampleWorldStep": { "type": "number", "description": "Sampling step size in meters for traversing triangles in mesh geometry. Default is 0.125. Only valid for Cesium3DTiles input.", "format": "double" }, "featureClassDisplayName": { "type": "string", "description": "Name of the feature class to create in the Geospatial Features API. If omitted, uses the input reality data display name. Only valid for ImportFeatures jobs." }, "topLevel": { "type": "integer", "description": "Top level of the tile map to generate. Default is -1 (single tile for all input data). Only valid for TileMap output." }, "bottomLevel": { "type": "integer", "description": "Bottom level of the tile map to generate. Default is -1 (closest to native resolution). Only valid for TileMap output." }, "tileFormat": { "type": "string", "description": "Tile format for the tile map. Supported values are 'JPG' (default) and 'PNG'. Only valid for TileMap output." }, "jpgQuality": { "maximum": 99, "minimum": 10, "type": "number", "description": "Quality of JPG tiles to generate (10–99). Default is 85. Only valid for TileMap output.", "format": "double" }, "backgroundColor": { "type": "string", "description": "Background color to use for tiles, in 'r.g.b' where r,g,b (red,green,blue) are values 0..255, default value is '255.255.255' (white). Only valid for TileMap output." } }, "additionalProperties": false, "description": "List of optional parameters." }
Job
Full representation of a job.
Job unique id.
Job name.
iTwin Id.
owner Id.
Creation time of the job.
Last modification date of the job.
Datacenter location of the job.
User email address.
{ "title": "Job", "required": [ "id", "name", "type", "state", "createdDateTime", "lastModifiedDateTime", "dataCenter", "inputs", "outputs", "iTwinId" ], "type": "object", "properties": { "id": { "type": "string", "description": "Job unique id." }, "name": { "type": "string", "description": "Job name." }, "type": { "$ref": "#/components/schemas/jobType" }, "state": { "$ref": "#/components/schemas/jobState" }, "iTwinId": { "type": "string", "description": "iTwin Id." }, "ownerId": { "type": "string", "description": "owner Id." }, "createdDateTime": { "type": "string", "description": "Creation time of the job.", "format": "date-time" }, "lastModifiedDateTime": { "type": "string", "description": "Last modification date of the job.", "format": "date-time" }, "dataCenter": { "type": "string", "description": "Datacenter location of the job." }, "email": { "type": "string", "description": "User email address." }, "executionInformation": { "$ref": "#/components/schemas/executionInformation" }, "costEstimation": { "$ref": "#/components/schemas/costEstimation" }, "inputs": { "type": "array", "items": { "$ref": "#/components/schemas/jobInput" }, "description": "List of inputs of the job." }, "outputs": { "type": "array", "items": { "$ref": "#/components/schemas/jobOutput" }, "description": "List of outputs of a job." }, "options": { "$ref": "#/components/schemas/jobOptions" } }, "additionalProperties": false, "description": "Full representation of a job." }
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.
{ "required": [ "code", "message" ], "type": "object", "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "target": { "type": "string", "description": "The target of the error.", "nullable": true } }, "description": "Contains error information." }
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.
{ "title": "Error Response", "required": [ "error" ], "type": "object", "properties": { "error": { "$ref": "#/components/schemas/Error" } }, "additionalProperties": false, "description": "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." }
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.
{ "required": [ "code", "message", "details" ], "type": "object", "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "message": { "type": "string", "description": "A human-readable representation of the error." }, "target": { "type": "string", "description": "The target of the error.", "nullable": true }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/Error" }, "description": "Optional array of more specific errors." } }, "description": "Contains error information and an 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.
{ "title": "Detailed Error Response", "required": [ "error" ], "type": "object", "properties": { "error": { "$ref": "#/components/schemas/DetailedError" } }, "additionalProperties": false, "description": "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." }
Cost Estimation Parameters
Parameters to be used to estimate the cost of the job.
Gigapixels to be processed.
Megapoints to be processed.
{ "title": "Cost Estimation Parameters", "type": "object", "properties": { "gigaPixels": { "type": "number", "description": "Gigapixels to be processed." }, "megaPoints": { "type": "number", "description": "Megapoints to be processed." } }, "additionalProperties": false, "description": "Parameters to be used to estimate the cost of the job." }
Job Input (Job Create)
Input description for a job.
Reality data Id of the input.
{ "title": "Job Input (Job Create)", "type": "object", "properties": { "id": { "type": "string", "description": "Reality data Id of the input." } }, "additionalProperties": false, "description": "Input description for a job." }
Job Output (Job Create)
Specifies the output formats for the job.
- Allowed values are defined in the
PointCloudOutputsandVectorOutputsschemas. - If the input is a point cloud type, only values from PointCloudOutputs are valid.
- If the input is a vector type, only values from VectorOutputs are valid.
{ "title": "Job Output (Job Create)", "enum": [ "OPC", "PNTS", "GLB", "GLBC", "LAS", "LAZ", "E57", "PointCloud", "GeoJSON", "FDB", "XYZTileMap" ], "type": "string", "description": "Specifies the output formats for the job.\n\n- Allowed values are defined in the `PointCloudOutputs` and `VectorOutputs` schemas.\n- If the input is a point cloud type, only values from PointCloudOutputs are valid.\n- If the input is a vector type, only values from VectorOutputs are valid." }
Job (Create)
Model for creating a new job.
Job name.
ITwin Id.
{ "title": "Job (Create)", "required": [ "type", "name", "inputs", "outputs", "iTwinId" ], "type": "object", "properties": { "type": { "$ref": "#/components/schemas/jobType" }, "name": { "type": "string", "description": "Job name." }, "iTwinId": { "type": "string", "description": "ITwin Id." }, "costEstimationParameters": { "$ref": "#/components/schemas/costEstimationParameters" }, "options": { "$ref": "#/components/schemas/jobOptions" }, "inputs": { "type": "array", "items": { "$ref": "#/components/schemas/jobCreateInput" }, "description": "List of inputs of the job." }, "outputs": { "type": "array", "items": { "$ref": "#/components/schemas/jobCreateOutput" }, "description": "List of output formats of the job." } }, "additionalProperties": false, "description": "Model for creating a new job." }
Job Response
{ "title": "Job Response", "required": [ "job" ], "type": "object", "properties": { "job": { "$ref": "#/components/schemas/job" } }, "additionalProperties": false }
Was this page helpful?