Search Results for

    Show / Hide Table of Contents

    Method VerifyDocumentIntegrity

    VerifyDocumentIntegrity(String, String, String)

    Verify the integrity of a document.
    Documents will be tested for file existence, file readable, file size and correct hash value (if available).

    Declaration
    void VerifyDocumentIntegrity(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

    Optional: The version id GetVersionListItems(String, String, Int32, Int32)

    Examples

    POST http://YourServerName/InfoShare/Json/Document/VerifyDocumentIntegrity

    Example for verify document integrity.

    {
       "connectionId": "1fbe116a-20a9-4378-b198-6cf3283f0238",
       "documentId": "d2c01001-18d0-e911-a93a-00155d290a08",
       "versionId": "d2c01001-18d0-e911-a93a-00155d290a08"
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

    File could not be exported {documentId} (10000)

    ServiceException

    Wrong file size {documentId} (10001)

    ServiceException

    Wrong hash for file {documentId} (10003)

    ServiceException

    Document without file {documentId} (10004)

    ServiceException

    No document found for documentId {documentId} (10005)

    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Could not retrieve version {versionId} for document {documentId} (10130)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox