Adding a Data Provider

Adds a new data provider to a Web Intelligence document.

The data provider is defined by its name, unique within the WebI document, and the CUID of either a universe (UNV or UNX) or a connection specification for a direct access to data source.

Request

POST <webiURL>/documents/{documentId}/dataproviders

Where:

  • {documentId} is the document identifier retrieved from the list of documents

Request body:

<dataprovider>
    <name>
    <dataSourceId>
<dataprovider>

Where:

  • <name> is the data source name
  • <dataSourceId> is the data source identifier
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/3422/dataproviders

Request body for a BEx query:

<dataprovider>
    <name>Query1</name>
    <dataSourceId>11990;Z_BOBJ;AAQUERY_SAMPLE</dataSourceId>
<dataprovider>

Response:

<success>
    <message>The resource of type 'Data provider' with identifier 'DP3' has been successfully created.</message>
    <id>DP3</id>
</success>