Update metadata of the Extension 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
Extension ID
Version number
Request headers
OAuth access token with itwin-platform
scope
Setting to application/vnd.bentley.itwin-platform.v1+json
is recommended.
Request body
UpdateVersionRequestBody
Indicated whether the Version is deprecated or not. If not provided, the value will not be changed. "Un-deprecating" a Version is not allowed.
Example
{ "deprecated": true }
Response 200 OK
Extension Version updated.
{ "_links": { "self": { "href": "https://api.bentley.com/extensions/204baa23-d99e-427d-828f-425afe25b42d/versions/0.1.1" } }, "version": { "number": "0.1.1", "deprecated": true, "creationTime": "2025-09-22T12:37:08.5Z", "lastUpdateTime": "2025-09-22T12:37:27.303Z" } }
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
User is not authorized to update Extension Version.
{ "error": { "code": "InsufficientPermissions", "message": "The user has insufficient permissions for the requested operation." } }
Response 404 Not Found
Requested resource is not available.
{ "error": { "code": "VersionNotFound", "message": "Requested Version is not available." } }
Response 422 Unprocessable Entity
Invalid request to update Extension Version.
{ "error": { "code": "InvalidExtensionsRequest", "message": "Cannot update version.", "details": [{ "code": "InvalidValue", "message": "Provided 'deprecated' is not valid. The value is not a boolean.", "target": "deprecated" }] } }
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.
UpdateVersionRequestBody
Indicated whether the Version is deprecated or not. If not provided, the value will not be changed. "Un-deprecating" a Version is not allowed.
{ "type": "object", "properties": { "deprecated": { "type": "boolean", "nullable": true, "description": "Indicated whether the Version is deprecated or not. If not provided, the value will not be changed. \"Un-deprecating\" a Version is not allowed." } } }
UpdateVersionResponseBody
{ "type": "object", "properties": { "_links": { "type": "object", "properties": { "self": { "type": "object", "properties": { "href": { "type": "string" } }, "required": [ "href" ] } }, "required": [ "self" ] }, "version": { "type": "object", "properties": { "number": { "type": "string" }, "deprecated": { "type": "boolean" }, "creationTime": { "type": "string", "format": "Date" }, "lastUpdateTime": { "type": "string", "format": "Date" } }, "required": [ "number", "deprecated", "creationTime", "lastUpdateTime" ] } }, "required": [ "_links", "version" ] }
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.
{ "type": "object", "description": "Contains error information and an array of more specific errors.", "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", "description": "Optional array of more specific errors.", "items": { "$ref": "#/components/schemas/Error" } } }, "required": [ "code", "message", "details" ], "additionalProperties": true }
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.
{ "type": "object", "title": "Detailed Error Response", "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.", "properties": { "error": { "description": "Error Detailed information.", "$ref": "#/components/schemas/DetailedError" } }, "required": [ "error" ], "additionalProperties": false }
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.
{ "type": "object", "description": "Contains error information.", "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 } }, "required": [ "code", "message" ], "additionalProperties": true }
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.
{ "type": "object", "title": "Error Response", "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.", "properties": { "error": { "description": "Error information.", "$ref": "#/components/schemas/Error" } }, "required": [ "error" ], "additionalProperties": false }
Was this page helpful?