Moving folders

The API exposes the ability to move a folder to a different folder or a different library.

Moving to another folder

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

PATCH /api/folders/{folderId}/folders

Where:

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

With the following body:

{
    "FolderId": <number>
}

Where:

  • FolderId: the ID of the folder being moved

Moving to another library

To move a folder to the root of a different library, issue the following PATCH request:

PATCH /api/libraries/{libraryId}/folders

Where:

  • libraryId: the ID of the library to which the folder will be moved

With the following body:

{
    "FolderId": <number>
}

Where:

  • FolderId: the ID of the folder being moved