cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS Move Folder API

jackmaloney
Champ in-the-making
Champ in-the-making
Hi,

Im having some trouble getting the CMIS move folder operation working. The documentation isn't too clear on which ID's go where. So I am trying to use this call:

/alfresco/service/cmis/p{path}/children?sourceFolderId={sourceFolderId}

I'm assuming the 'path' is the path I want to move the folder to and the sourceFolderId is the NodeId of the folder I want to move. However, I get a 500 error like this when run: 07040024 Wrapped Exception (with status template): com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}] 

Can anyone spot where I am going wrong?

Thanks,
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
Yes,'path' is the path you want to move the folder to ,but the sourceFolderId is not the NodeId of the folder you want to move,it is node to move's parent folder id.
This webscript 's default format is atomentry,you should construct an atom string and sent it as your request body,and  objectid you want to move is parsed from the atom request body