Updates the data filter applied to a given report specified in the URL parameter.
PUT <webiURL>/documents/{documentId}/reports/{reportId}/elements/{elementId}/datafilter
Request body: the description of the data filter to create for the report. The operator is one of the available report filter conditions :
Response type: application/xml or application/json
The response is a message stating the success or failure of the request.
PUT <webiURL>/documents/223/reports/1/elements/22/datafilter
Request body:
<datafilter> <and> <condition key="[Lines]" operator="InList"> <value>City Trousers</value> <value>Shirt Waist</value> <value>Jackets</value> </condition> <condition key="[State]" operator="NotEqual"> <value>Colorado</value> </condition> <or> <condition key="[Sales revenue]" operator="Greater"> <value>5000</value> </condition> <condition key="[Sales revenue]" operator="Less"> <value>10</value> </condition> </or> </and> </datafilter>
Response:
<success> <message>The resource of type 'Report' with identifier '1' has been successfully updated.</message> <id>1</id> </success>