- URL:
- https://<root>/<serviceName>/VersionManagementServer/versions/<versionGuid>
- Methods:
GET- Operations:
- Alter, Conflicts, Delete Forward Edits, Differences, Inspect Conflicts, Partial Post, Post, Reconcile, Restore Rows, Start Editing, Start Reading, Stop Editing, Stop Reading
- Version Introduced:
- 10.6
Description
The version resource represents a single version under the Version Management service that returns information about the version and supports many operations. The version is accessed using the version value that is obtained from the versions resource.
Version operations
The following table lists the read and write lock requirements for version operations:
| Operation | Read lock required | Write lock required |
|---|---|---|
| Alter | ||
| Conflicts | ||
| Delete Forward Edits | ||
| Differences | ||
| Inspect Conflicts | ||
| Post / Partial Post | ||
| Reconcile | ||
| Restore Rows |
- Read and write locks are acquired using the
startandReading startoperations and released using theEditing stopandReading stopoperations. Operations that require a sessionId must use the sameEditing sessionvalue that was used to acquire the read or write lock on the version.Id - Only a single session may hold a write lock.
- An identity (user) may only hold a single read or write lock per version.
- If an identity attempts to acquire a second read or write lock on a version resource with a different sessionId, the existing read or write lock will be removed as well as any edits which have not yet been saved.
- A read lock can be used to prevent the version from being reconciled to ensure read consistency.
Request parameters
| Parameter | Details |
|---|---|
| Specifies the output format of the response. The default response format is Values: |
JSON Response syntax
{
"versionName": "<owner.versionName>",
"versionGuid": <guid>,
"versionId": <ID>,
"description": "<description>",
"creationDate": <unix timestamp in milliseconds>,
"modifiedDate": <unix timestamp in milliseconds>,
"reconcileDate": <unix timestamp in milliseconds>,
"previousAncestorDate": <unix timestamp in milliseconds>,
"commonAncestorDate": <unix timestamp in milliseconds>,
"evaluationDate": <unix timestamp in milliseconds>,
"isBeingEdited": <true | false>,
"isBeingRead": <true | false>,
"hasConflicts": <true | false>,
"hasUninspectedConflicts": <true | false>,
"isLocked": <true | false>,
"lockOwner": "<lockOwner>",
"lockDate": <unix timestamp in milliseconds>,
"access": "private" | "public" | "protected",
"success": <true | false>
}Example usage
The version resource is used to return information about a specific version by using the version value. In this example, the version value is F93DB9FD-6F39-45D9-A6C7-D43E69EB3076.
Request URL and JSON response:
https
{
"versionName": "UNADMIN.ProjectA",
"versionGuid": "{F93DB9FD-6F39-45D9-A6C7-D43E69EB3076}",
"versionId": 20,
"description": "",
"creationDate": 1550771990888,
"modifiedDate": 1550853280024,
"reconcileDate": 1550853215169,
"previousAncestorDate": null,
"commonAncestorDate": 1550853215169,
"evaluationDate": null,
"isBeingEdited": false,
"isBeingRead": false,
"hasConflicts": false,
"hasUninspectedConflicts": false,
"isLocked": false,
"lockOwner": "",
"lockDate": -1,
"access": "public",
"success": true
}