Skip to Content

How to move document to another folder using Rest API?

How to move document to another folder using Restful API?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 05, 2016 at 10:33 PM

    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

    Add comment
    10|10000 characters needed characters exceeded