cancel
Showing results for 
Search instead for 
Did you mean: 

Move content from one folder to another folder

Ramakrishna_Gad
Confirmed Champ
Confirmed Champ

Hello Everyone,

I want to move content from one folder to another folder. Can we have any REST Api for moving from one folder to another folder ? Example. I have folder1 and folder2. Case1: I want to move filder1 into folder2. Cate 2 : I want to move only folder1 content to folder2.

Please help.

Thanks

4 REPLIES 4

Greg_Drayon
Star Contributor
Star Contributor

This should be the operation you're looking for. For your first case, have folder1 as input and folder2 as name parameter. For the second use case, iterate over your folder1 content and call the operation. Or maybe, as the operation accepts "documents" as input, you can give it a list of documents. I'm afraid I never really understood that part with "document, documents". Anyway, that should answer your question.

Can i have rest api for this use case?

http

kartik_sn
Confirmed Champ
Confirmed Champ

http://localhost:8080/nuxeo/api/v1/automation/Document.Move

The above API can serve the purpose of moving a file from folder1 to folder2 or complete folder1 into folder2. I guess moving only contents of folder1 into folder2 should be iterated as mentioned by Greg Drayon. I am yet to try that use case.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.