Method GetDocumentVersion
GetDocumentVersion(String, String, String)
Returns document version informations
Declaration
DocumentContract GetDocumentVersion(string connectionId, string documentId, string versionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | documentId | The document id. See also Id |
System.String | versionId | The version id GetVersionListItems(String, String, Int32, Int32) |
Returns
Type | Description |
---|---|
DocumentContract | Document version information |
Examples
POST http://YourServerName/InfoShare/Json/Document/GetDocumentVersion
Example for returns document version informations.{
"connectionId": "1fbe116a-20a9-4378-b198-6cf3283f0238",
"documentId": "7d58533d-75db-e911-a946-00155d290a08",
"versionId": "7d58533d-75db-e911-a946-00155d290a08"
}
Response:
{
"GetDocumentVersionResult": {
"Abonnements": [],
"AccessRightsEnumList": ["CheckOut", "Delete", "DeleteVersion", "EditAnnotation", "EditContent",
"EditProperties", "GrantAccessToOtherUsers", "Move", "SetSecurity", "OverwriteVersion",
"ViewVersionLog", "ViewChangeLog", "ViewAccessLog", "EditMultiple", "ChangeRequiredList",
"CreateBlog", "DeleteBlog", "EditBlog", "ViewBlog", "RemoveDocumentContent",
"ExecuteApplication", "Export", "SendAsFax", "Print", "Send", "View"],
"AnnotationManager": {
"PostItAnnotations": [],
"RectangleAnnotations": [],
"StampAnnotations": [],
"TextAnnotations": [] },
"Blogs": [],
"CheckOutStateEnum": "NotCheckedOut",
"CheckOutUserId": "00000000-0000-0000-0000-000000000000",
"DocumentData": [{
"Id": "d659533d-75db-e911-a946-00155d290a08",
"Name": "TestDocu.pdf",
"Renditions": [{
"ContentProtections": [],
"Extension": "pdf",
"Files": [{
"BlobPath": "2019\\09\\20\\000\\000\\000TestDocu.pdf",
"BlobStoreId": "217f2561-959e-4e3d-bbc0-99109043f1bd" }],
"HashValue": [21, 200, 105, 12, 173, 63, 136, 244, 242, 6, 182, 244, 190, 121, 60, 251,
197, 175, 62, 141, 43, 72, 64, 239, 43, 5, 141, 251, 248, 129, 82, 122, 122, 154, 228,
43, 207, 196, 224, 24, 165, 138, 159, 201, 174, 103, 47, 211, 202, 36, 225, 81, 116,
185, 54, 123, 198, 144, 12, 251, 184, 129, 230, 168],
"Id": "e459533d-75db-e911-a946-00155d290a08",
"PageCount": 1,
"Size": 155867 }]
}],
"HasOverlay": false,
"Id": "7d58533d-75db-e911-a946-00155d290a08",
"ImportTemplateId": "54bdac99-17d0-e911-a93a-00155d290a08",
"InfoStoreId": "3bb6448c-b9cf-e911-a939-00155d290a08",
"LifeCycleManager": {
"CheckOutLifeCycleStateId": null,
"LifeCycleEndDate": null,
"LifeCycleId": null,
"LifeCycleProtections": null,
"LifeCycleStartDate": null,
"LifeCycleStateId": null,
"NextAutomaticLifeCycleStateId": null,
"NextLifeCycleStates": [] },
"MainFileLength": 155867,
"Name": "TestDocu.pdf",
"PageCount": 1,
"Properties": [{
"PropertyTypeId": "f972ea44-17d0-e911-a93a-00155d290a08",
"Values": ["TestDocu"] }, {
"PropertyTypeId": "b398b135-17d0-e911-a93a-00155d290a08",
"Values": ["7858"] }, {
"PropertyTypeId": "0086153f-c1cf-e911-a939-00155d290a08",
"Values": [] }],
"ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f",
"Reminders": [],
"SigningProfileId": null,
"VersionId": "7d58533d-75db-e911-a946-00155d290a08" }
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Unknown data type for property type (10035) |
ServiceException | Document version not found {versionId} (10113) |
ServiceException | Could not retrieve version {versionId} for document {documentId} (10130) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |