Copying and moving documents

The API exposes the ability to move or copy a document to a new folder.

Moving documents

To move a document to a different folder, issue the following PATCH request:

PATCH /api/folders/{folderId}/documents

Where:

  • folderId: the ID of the folder to which the document will be moved

With the following body:

{
    "DocumentId": <number>
}

Where:

  • DocumentId: the ID of the document being moved

Copying documents

To copy a document to a new folder, append the query string parameter, copy=true, to the above PATCH request:

PATCH /api/folders/{folderId}/documents?copy=true