Copying a Document

Copies a Web Intelligence document referenced by its ID.

Request

POST <webiURL>/documents?sourceId={documentId}

Where:

  • {documentId} is the document identifier retrieved from the list of documents. Minimum is 1.
Request body:
<document>
    <name>
    <folderId>
</document>

Where:

  • <name> is the name of the copied document in the BI launch pad folder.
  • <folderId> is the BI launch pad folder where the document is copied. The default is the folder of the original document.
Response

Response type: application/xml or application/json

The response is a message stating the success or failure of the request.

Example

POST <webiURL>/documents?sourceId=4990

With the following body:

<document>
    <name>Copy of 4990</name>
</document>

Response:

<success>
    <message>The resource of type 'document' with identifier '5875' has been successfully created.</message>
    <id>5875</id>
</success>

The name Copy of 4990 and ID 5875 have been assigned to the copied document. The folder is the same as the original one.