Updating Report Options

Use the following method to modify the values in a given report option.

Method

URL

PUT

http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/path/to/report/options/<optionID>/

Content-Type

Content

application/json

A JSON object that lists the input control selections. See example below.

Return Value on Success

Typical Return Values on Failure

200 OK

404 Not Found – When the specified report URI is not found in the repository.

For example, we change the report option we created in section Creating Report Options with the following header:

http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/reports/samples/Cascading_multi_select_report/options/MyReportOption

And the following request body:

{
   "Country_multi_select":["USA"],
   "Cascading_state_multi_select":["CA", "WA"]
}
Version: 
Feedback
randomness