cancel
Showing results for 
Search instead for 
Did you mean: 

How to move document to another folder using Rest API?

0 Kudos

How to move document to another folder using Restful API?

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos

Hi Sivaraman,

You can copy a webi document to another folder using:

POST  ...documents?sourceId=<docId>

body:   <document>

                  <name> copy of docID</name>

                  <folderId>1234</folderId>

            </document>

Note this creates a copy and does not move the document, so the response will contain the ID of the new copy of the document.  

As far as I know, there is no way to 'Move' a document from one folder to another with the REST APIs such that it retains the original ID and CUID.

Dan

0 Kudos

After posting it I found the method to copy the report and modified my original question, any way thanks for your reply.

I am more interested to move the document, is there any other way to achieve?

daniel_paulsen
Active Contributor
0 Kudos

No, it does not appear possible with the RESTful SDK.  A document can, however, be moved using the Java or .NET platform SDKs.

Dan

Answers (1)

Answers (1)

0 Kudos

@daniel.paulsen

can you provide the code you use to copy or move document using sdk?