Deleting a Data Provider

Removes a data provider from the list of data providers of a Web Intelligence document.

Request

DELETE <webiURL>/documents/{documentId}/dataproviders/{dataProviderId}

Where:

  • {documentId} is the document identifier retrieved from the list of documents
  • {dataProviderId} is the identifier of the data provider retrieved from the list of data providers
Response

Response type: application/xml or application/json

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

Example

DELETE <webiURL>/documents/7738/dataproviders/DP1

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

Example

Removing the Last Data Provider

DELETE <webiURL>/documents/7738/dataproviders/DP0

<error>
   <error_code>101</error_code>
   <message>The resource of type 'Data provider' with identifier 'DP0' cannot be removed.</message> 
</error>