Get a list of processing statuses for changesets in an iModel. This list allows you to inspect which changesets are ready to be used to generate a comparison summary.
Request parameters
Amount of changesets to return in a single result. Optional.
Amount of changesets to skip when returning results. Optional.
Id of the iTwin where the iModel resides.
Id of the iModel to query for status of changesets.
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.
Response 200 OK
OK
{ "changesetStatus": [{ "id": "c7033d718cab5134d1be1fa47316753985695e1d", "index": 3, "ready": true }, { "id": "ef3c6be62f7bf0053b8b74ded20ea3201840c6e1", "index": 4, "ready": true }, { "id": "45df48dd7b53a6aacc16319dc9e03aa0f26d8407", "index": 5, "ready": true }], "_links": { "self": { "href": "https://api.bentley.com/changedelements/changesets?iTwinId=1036c64d-7fbe-47fd-b03c-4ed7ad7fc829&iModelId=0db82dc1-e871-4209-b40a-6753c6a68c19&$top=3&$skip=2" }, "prev": { "href": "https://api.bentley.com/changedelements/changesets?iTwinId=1036c64d-7fbe-47fd-b03c-4ed7ad7fc829&iModelId=0db82dc1-e871-4209-b40a-6753c6a68c19&$top=3&$skip=0" }, "next": { "href": "https://api.bentley.com/changedelements/changesets?iTwinId=1036c64d-7fbe-47fd-b03c-4ed7ad7fc829&iModelId=0db82dc1-e871-4209-b40a-6753c6a68c19&$top=3&$skip=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.
{ "$ref": "#/components/examples/401.HeaderNotFound.example" }
Response 404 Not Found
This response indicates that provided iTwin or iModel was not found.
{ "error": { "code": "IModelNotFound", "message": "Requested iModel is not available." } }
Response 422 Unprocessable Entity
This response indicates that a URL parameter was malformed or there are missing required parameters.
{ "error": { "code": "InvalidChangedElementsRequest", "message": "Could not get processed.", "details": [{ "code": "MissingRequiredParameter", "message": "Query parameter must be provided.", "target": "iModelId" }, { "code": "MissingRequiredParameter", "message": "Query parameter must be provided.", "target": "iTwinId" }, { "code": "InvalidParameter", "message": "$top must be a positive number.", "target": "$top" }, { "code": "InvalidParameter", "message": "$skip must be a positive number.", "target": "$skip" }] } }
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.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information.", "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", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/Error", "description": "Error information." } }, "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.", "additionalProperties": false }
changesets-get
{ "type": "object", "properties": { "_links": { "type": "object", "properties": { "next": { "type": "object", "properties": { "href": { "type": "string" } }, "additionalProperties": false }, "prev": { "type": "object", "properties": { "href": { "type": "string" } }, "additionalProperties": false }, "self": { "type": "object", "properties": { "href": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, "changesetStatus": { "type": "array", "items": { "type": "object", "required": [ "id", "index", "ready" ], "properties": { "id": { "type": "string" }, "index": { "type": "integer" }, "ready": { "type": "boolean" } }, "additionalProperties": false } } }, "additionalProperties": false }
Was this page helpful?