Updating the Ranking of a Report Element

Modifies a ranking in a report element of type table (HTable, VTable, XTable, and Form) or section.

Request

PUT <webiURL>/documents/{documentId}/reports/{reportId}/elements/{elementId}/ranking

Where:

  • {documentId} is the document identifier retrieved from the list of documents
  • {reportId} is the report identifier retrieved from the list of reports
  • {elementId} is the element identifier retrieved from the list of elements of a report

Request body: the details of the ranking to update.

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/17281/reports/1/elements/20/ranking

Request body:

<ranking calculation="Count" top="2" bottom="4">
    <basedOn>=[Number of guests]</basedOn>
    <rankedBy>=[Year]</rankedBy>
</ranking>

Response:

<success>
    <message>The resource of type 'Ranking' has been successfully updated.</message>
</success>