Retrieves the metadata of a Changeset.
For more information on creating and retrieving Changesets using iTwin.js see working with Changesets.
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.
Authorization
User must have imodels_webview permission assigned at the iModel level. If iModel Role permissions at the iModel level are configured, then user must additionally have at least imodels_webview permission assigned at the iTwin level. If permissions at the iModel level are not configured, then user must have imodels_webview permission assigned at the iTwin level.
Alternatively the user should be an Organization Administrator for the Organization that owns a given iTwin the iModel belongs to.
For more information please refer to Account Administrator documentation section on Access Control API documentation page.
Note: download property requires user to have at least imodels_read permission. If user has only imodels_webview permission download will always be null.
Rate limits
All iTwin Platform API operations have a rate limit. For more documentation on that visit Rate limits and quotas page.
Request parameters
iModel id
Changeset id or index
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v2+json is recommended.
Response 200 OK
OK
{ "changeset": { "id": "1f2e04b666edce395e37a795e2231e995cbf8349", "displayName": "256", "description": "Changeset 15", "index": 256, "parentId": "f7618612c572d7db8e3e6095d622d0d8aff22874", "creatorId": "ea4dfb9f-7f66-4c6f-82c5-0efad1636a1f", "pushDateTime": "2020-10-21T06:35:30.7000000+00:00", "state": "fileUploaded", "containingChanges": 0, "fileSize": 109, "briefcaseId": 2, "groupId": "1a038d01-5b2d-44d9-b4ca-e8d21805983c", "application": { "id": "itwin-synchronizer-unique-id", "name": "iTwin Synchronizer" }, "synchronizationInfo": { "changedFiles": ["File1.dgn", "File2.dgn"], "taskId": "5154ac23-d83f-4e82-b708-438fb6d51d4e" }, "_links": { "creator": { "href": "https://api.bentley.com/imodels/5e19bee0-3aea-4355-a9f0-c6df9989ee7d/users/ea4dfb9f-7f66-4c6f-82c5-0efad1636a1f" }, "namedVersion": { "href": "https://api.bentley.com/imodels/5e19bee0-3aea-4355-a9f0-c6df9989ee7d/namedversions/0c18d073-d1e2-4862-9d6b-a5a63ade4f52" }, "currentOrPrecedingCheckpoint": { "href": "https://api.bentley.com/imodels/5e19bee0-3aea-4355-a9f0-c6df9989ee7d/changesets/256/checkpoint" }, "self": { "href": "https://api.bentley.com/imodels/5e19bee0-3aea-4355-a9f0-c6df9989ee7d/changesets/1f2e04b666edce395e37a795e2231e995cbf8349" }, "download": { "storageType": "azure", "href": "https://example.com/imodelhub-5e19bee0-3aea-4355-a9f0-c6df9989ee7d/1f2e04b666edce395e37a795e2231e995cbf8349.cs?sv=2019-07-07&sr=b&sig=**removed**&st=2021-07-30T10%3A53%3A09.5224547Z&se=2021-07-30T11%3A13%3A09.5224552Z&sp=r" } } } }
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
Specified iModel or Changeset was not found.
{ "error": { "code": "iModelNotFound", "message": "Requested iModel is not available." } }
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.
Link
Hyperlink container.
Hyperlink to the specific entity.
{ "type": "object", "nullable": true, "properties": { "href": { "type": "string", "description": "Hyperlink to the specific entity." } }, "description": "Hyperlink container.", "additionalProperties": false }
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 }
Changeset state
Indicates the state of the Changeset. 'waitingForFile' - indicates that Changeset metadata is created, but Changeset file is not uploaded yet or file upload is not confirmed yet. 'fileUploaded' - indicates that Changeset file is uploaded and confirmed.
{ "enum": [ "waitingForFile", "fileUploaded" ], "type": "string", "description": "Indicates the state of the Changeset. 'waitingForFile' - indicates that Changeset metadata is created, but Changeset file is not uploaded yet or file upload is not confirmed yet. 'fileUploaded' - indicates that Changeset file is uploaded and confirmed.", "title": "Changeset state" }
Changeset
Changeset represents a file containing changes to the iModel. A single Changeset contains changes made on a single Briefcase file and pushed as a single file.
Id of the Changeset.
Index of the Changeset (increasing, but not necessarily sequential).
Indicates the state of the Changeset. 'waitingForFile' - indicates that Changeset metadata is created, but Changeset file is not uploaded yet or file upload is not confirmed yet. 'fileUploaded' - indicates that Changeset file is uploaded and confirmed.
Size of the Changeset file in bytes.
Id of the parent Changeset.
Id of the user who created the Changeset.
Id of the briefcase that was used to push the Changeset.
Description of the Changeset.
Display name of the Changeset. Corresponds to Index property.
Date when the Changeset was pushed to iModelHub.
Describes what type of changes Changeset contains. Tells what changes changeset contains. 0 - regular, 1 - schema, 2 - definition, 4 - spatial data, 8 - sheets and drawings, 16 - views and models, 32 - global properties. ContainingChanges is flag value, therefore all change types, except Schema, can be combined.
{ "type": "object", "properties": { "id": { "type": "string", "description": "Id of the Changeset." }, "index": { "type": "integer", "description": "Index of the Changeset (increasing, but not necessarily sequential)." }, "state": { "enum": [ "waitingForFile", "fileUploaded" ], "type": "string", "description": "Indicates the state of the Changeset. 'waitingForFile' - indicates that Changeset metadata is created, but Changeset file is not uploaded yet or file upload is not confirmed yet. 'fileUploaded' - indicates that Changeset file is uploaded and confirmed.", "title": "Changeset state", "$ref": "#/components/schemas/Changeset-state" }, "_links": { "$ref": "#/components/schemas/ChangesetLinks" }, "groupId": { "type": "string", "nullable": true, "description": "Id of the [Changeset Group](https://developer.bentley.com/apis/imodels-v2/operations/create-imodel-changeset-group/) that the Changeset belongs to." }, "fileSize": { "type": "integer", "description": "Size of the Changeset file in bytes." }, "parentId": { "type": "string", "nullable": true, "description": "Id of the parent Changeset." }, "creatorId": { "type": "string", "description": "Id of the user who created the Changeset." }, "application": { "$ref": "#/components/schemas/Application" }, "briefcaseId": { "type": "integer", "description": "Id of the briefcase that was used to push the Changeset." }, "description": { "type": "string", "nullable": true, "description": "Description of the Changeset." }, "displayName": { "type": "string", "description": "Display name of the Changeset. Corresponds to Index property." }, "pushDateTime": { "type": "string", "format": "date-time", "description": "Date when the Changeset was pushed to iModelHub." }, "containingChanges": { "type": "integer", "description": "Describes what type of changes Changeset contains. Tells what changes changeset contains. 0 - regular, 1 - schema, 2 - definition, 4 - spatial data, 8 - sheets and drawings, 16 - views and models, 32 - global properties. ContainingChanges is flag value, therefore all change types, except Schema, can be combined." }, "synchronizationInfo": { "$ref": "#/components/schemas/SynchronizationInfo" } }, "description": "Changeset represents a file containing changes to the iModel. A single Changeset contains changes made on a single Briefcase file and pushed as a single file.", "additionalProperties": false }
Application
Information about the client application that is related to an entity.
Id of the application.
Application name.
{ "type": "object", "nullable": true, "properties": { "id": { "type": "string", "description": "Id of the application." }, "name": { "type": "string", "description": "Application name." } }, "description": "Information about the client application that is related to an entity.", "additionalProperties": false }
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 }
Changeset Links
Hyperlinks to Changeset related data.
{ "type": "object", "title": "Changeset Links", "properties": { "self": { "$ref": "#/components/schemas/Link" }, "creator": { "$ref": "#/components/schemas/Link" }, "download": { "$ref": "#/components/schemas/CloudStorageLink" }, "namedVersion": { "$ref": "#/components/schemas/Link" }, "currentOrPrecedingCheckpoint": { "$ref": "#/components/schemas/Link" } }, "description": "Hyperlinks to Changeset related data.", "additionalProperties": false }
CloudStorageLink storageType
Storage type. Possible values: azure - Azure Blob storage, google - Google Cloud storage.
{ "enum": [ "azure", "google" ], "type": "string", "description": "Storage type. Possible values: `azure` - Azure Blob storage, `google` - Google Cloud storage.", "title": "CloudStorageLink storageType" }
CloudStorageLink
Hyperlink container.
Hyperlink to cloud storage.
Storage type. Possible values: azure - Azure Blob storage, google - Google Cloud storage.
{ "type": "object", "nullable": true, "properties": { "href": { "type": "string", "description": "Hyperlink to cloud storage." }, "storageType": { "enum": [ "azure", "google" ], "type": "string", "description": "Storage type. Possible values: `azure` - Azure Blob storage, `google` - Google Cloud storage.", "title": "CloudStorageLink storageType", "$ref": "#/components/schemas/CloudStorageLink-storageType" } }, "description": "Hyperlink container.", "additionalProperties": false }
Changeset Response
Container for Changeset object.
{ "type": "object", "title": "Changeset Response", "properties": { "changeset": { "$ref": "#/components/schemas/Changeset" } }, "description": "Container for Changeset object.", "additionalProperties": false }
SynchronizationInfo
Information about synchronization that is related to a Changeset. This information is set by applications that perform iModel synchronization.
Id of the synchronization task.
List of source file names that contained changes which were synchronized to this Changeset.
{ "type": "object", "nullable": true, "properties": { "taskId": { "type": "string", "nullable": true, "description": "Id of the synchronization task." }, "changedFiles": { "type": "array", "items": { "type": "string" }, "nullable": true, "description": "List of source file names that contained changes which were synchronized to this Changeset." } }, "description": "Information about synchronization that is related to a Changeset. This information is set by applications that perform iModel synchronization.", "additionalProperties": false }
Was this page helpful?