Search Results for

    Show / Hide Table of Contents

    Method MoveDocument

    MoveDocument(String, String, String, Boolean, Boolean, Boolean, Boolean)

    Move a document

    Declaration
    DocumentContract MoveDocument(string connectionId, string documentId, string newInfoStoreId, bool doNotDeleteFiles, bool doNotMoveFilesPhysically, bool moveThumbnails, bool addDocumentToAnalyzer)
    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 newInfoStoreId

    The new store id. See also Id

    System.Boolean doNotDeleteFiles

    Do not delete files on old storage

    System.Boolean doNotMoveFilesPhysically

    Do not move files to new storage

    System.Boolean moveThumbnails

    Move thumbnails on old storage.

    System.Boolean addDocumentToAnalyzer

    Defines whether the documents should be analysed.

    Returns
    Type Description
    DocumentContract

    The moved document

    Examples

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

    Example for move a document.

    {
       "documentId": "7d58533d-75db-e911-a946-00155d290a08",
       "newInfoStoreId": "3bb6448c-b9cf-e911-a939-00155d290a08",
       "doNotDeleteFiles": false,
       "doNotMoveFilesPhysically": false,
       "moveThumbnails": false,
       "addDocumentToAnalyzer": false
    }

    Response:

    {
       "MoveDocumentResult": {
         "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

    InfoStore not found {infoStoreId} (10018)

    ServiceException

    Unknown data type for property type (10035)

    ServiceException

    Document already in InfoStore {infoStoreId} (10076)

    ServiceException

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

    Back to top Copyright © Kendox