Creating a Document

This section describes the sequence of calls that you must perform to create a Web Intelligence document that contains a report, and to save it to a specific folder.

It is assumed in this sequence that you know the universe identifier, the dimensions, and attributes to build the query specification, and how to get the report specification.

Note <bipURL> represents the default base URL that you must use to access SAP BusinessObjects BI platform RESTful web services. See the BI Platform RESTful Web Service Developer Guide for more information.
  1. Login to the CMS repository using POST <bipURL>/Logon/Long to get the logon token.
  2. Retrieve the document folder ID using GET <bipURL>/infostore/cuid_{cuid}.
  3. Create a Web Intelligence document using POST <webiURL>/documents.
  4. Create a report for the document using POST <webiURL>/documents/{documentId}/reports.
  5. Choose a universe by adding a data provider to the document using POST <webiURL>/documents/{documentId}/dataproviders.
  6. To create your query, add a query specification based on the data provider of the document using POST <webiURL>/documents/{documentId}/dataproviders/{dataProviderId}/specification.
  7. Run your query to get the document data using PUT <webiURL>/documents/{documentId}/parameters.
  8. To format your report, add the report structure using PUT <webiURL>/documents/{documentId}/reports/{reportId}/specification.
  9. Refresh the document using PUT <webiURL>/documents/{documentId}/parameters.
  10. Save the document using PUT <webiURL>/documents/{documentId}.