Create a new detector version.
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 parameters
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v2+json is recommended.
Request body
Detector version create payload
Example
{ "versionNumber": "2.0", "capabilities": { "labels": ["signs"], "exports": ["Objects"] } }
Response 201 Created
This response indicates that the detector version was successfully created.
{ "version": { "creationDate": "2025-08-08T08:06:30Z", "versionNumber": "1.0", "status": "AwaitingData", "creatorId": "4f2d47ac-e318-46dc-ae53-06d71c9ff79e", "capabilities": { "labels": ["signs"], "exports": ["Objects"] } }, "_links": { "completeUrl": { "href": "detectors/traffic-signs/version/1.0/complete" }, "uploadUrl": { "href": "https://cccsdetectorsdeveussa01.blob.core.windows.net/c29038eb-207e-430e-bba3-1a1ce48ca9ae/traffic-signs-1.0.zip?sv=2024-08-04&se=2025-08-08T08%3A26%3A32Z&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).
{ "error": { "code": "InvalidRealityAnalysisRequest", "message": "Cannot create detector version.", "details": [{ "code": "InvalidProperty", "message": "Version must contain a major and minor version in x.x format.", "target": "versionNumber" }] } }
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 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 409 Conflict
This response indicates that the user tried to create a resource that already exists.
{ "error": { "code": "DetectorVersionExists", "message": "This version of the detector already exists.", "target": "versionNumber" } }
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.
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." }
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." }
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." }
Detector version status
Available types for AI library detector version status.
{ "title": "Detector version status", "enum": [ "AwaitingData", "Ready" ], "description": "Available types for AI library detector version status." }
Detector export type
Available types for AI library detector exports.
{ "title": "Detector export type", "enum": [ "Objects", "Lines", "Polygons", "Locations" ], "description": "Available types for AI library detector exports." }
Detector version capabilities
Capabilities of detector version.
Labels of the detector version.
{ "title": "Detector version capabilities", "required": [ "labels" ], "type": "object", "properties": { "labels": { "type": "array", "items": { "type": "string" }, "description": "Labels of the detector version." }, "exports": { "type": "array", "items": { "$ref": "#/components/schemas/DetectorExportType" }, "description": "Exports of the detector version.", "default": null, "nullable": true } }, "additionalProperties": false, "description": "Capabilities of detector version." }
Detector version
Details of detector version.
Creation date of the version.
Version number.
User Id of the version creator.
{ "title": "Detector version", "required": [ "creationDate", "versionNumber", "status", "capabilities" ], "type": "object", "properties": { "creationDate": { "type": "string", "description": "Creation date of the version.", "format": "date-time" }, "versionNumber": { "type": "string", "description": "Version number." }, "status": { "$ref": "#/components/schemas/DetectorVersionStatus" }, "creatorId": { "type": "string", "description": "User Id of the version creator.", "default": null, "nullable": true }, "capabilities": { "$ref": "#/components/schemas/DetectorVersionCapabilities" } }, "additionalProperties": false, "description": "Details of detector version." }
Detector version create payload
Properties of the detector version to be created.
{ "title": "Detector version create payload", "required": [ "versionNumber", "capabilities" ], "type": "object", "properties": { "versionNumber": { "type": "string", "description": "Version number of the detector." }, "capabilities": { "$ref": "#/components/schemas/DetectorVersionCapabilities" } }, "additionalProperties": false, "description": "Properties of the detector version to be created." }
Link
The URL.
{ "required": [ "href" ], "type": "object", "properties": { "href": { "type": "string", "description": "The URL." } }, "additionalProperties": false }
Detector version creation links
Hyperlinks for further detector version upload and completion.
{ "title": "Detector version creation links", "required": [ "completeUrl", "uploadUrl" ], "type": "object", "properties": { "completeUrl": { "$ref": "#/components/schemas/Link" }, "uploadUrl": { "$ref": "#/components/schemas/Link" } }, "additionalProperties": false, "description": "Hyperlinks for further detector version upload and completion." }
Detector version create response
Response of detector version create operation.
{ "title": "Detector version create response", "required": [ "version", "_links" ], "type": "object", "properties": { "version": { "$ref": "#/components/schemas/DetectorVersion" }, "_links": { "$ref": "#/components/schemas/DetectorVersionCreateResponseLinks" } }, "additionalProperties": false, "description": "Response of detector version create operation." }
Was this page helpful?