Archive & Bin
When the Project got done
The folder that got archived or got moved into the bin will not be found within the search unless specifically asked.
Archive Folder
mutation ArchiveFolder($id: String!) {
archiveFolder(input: { id: $id }) {
folder {
id
isArchived
}
}
}
// variables
{
"id": "..."
}
Move Folder to Bin
tip
This mutation actually can accept documentIds too.
mutation MoveFoldersToBin($ids: [String]!) {
moveItemsToBin(ids: $ids) {
success
}
}
// variables
{
"ids": ["...", "..."]
}
Move Folder out of Bin or Archive
mutation MoveFolderToActiveZone($id: String!, $targetFolderId: String) {
updateFolderWorkflowItem(
input: { id: $id, workflowId: "", targetFolderId: $targetFolderId }
) {
folder {
id
isArchived
}
}
}
// variables
{
"id": "...",
"targetFolderId": "..."
}
targetFolderId
is optional. If you do not set it, we will put it on level 0. otherwise we will move the folder to the specified folder