Editing a Link

Modifies a link of a Web Intelligence document.

Request

PUT <webiURL>/documents/{documentId}/links/{linkId}

Where:

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

Request body:

<link> 
    <name>
    <description>
    ...
    <linkedExpressions>
        <linkedExpression id="..."/> 
        ... 
    </linkedExpressions>
</link>
Response

Response type: application/xml or application/json

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

Example

PUT <webiURL>/documents/3422/links/L2

Request body:

<link dataType="String" qualification="Dimension">  
    <id>L6</id>  
    <name>Year</name>  
    <description>Year 2003 - 2006.</description>  
    <dataSourceObjectId>DS0.DObc</dataSourceObjectId>  
    <formulaLanguageId>[Year]</formulaLanguageId>  
    <linkedExpressions>     
        <linkedExpression id="DP0.DObc"/>  
        <linkedExpression id="DP1.DObc"/>
    </linkedExpressions>
</link>

Response:

<success>
   <message>The resource of type 'Link' with identifier 'L2' has been successfully updated.</message>
   <id>67</id>
</success>