To stop a report that is running and cancel its output, use the PUT method and specify a status of “cancelled” in the body of the request.
Method |
URL |
||
PUT |
http://<host>:<port>/jasperserver[-pro]/rest_v2/reportExecutions/requestID/status/ |
||
Content-Type |
Content |
||
application/xml application/json |
Send a status descriptor in either XML or JSON format with the value cancelled. For example: XML: <status>cancelled</status> JSON: { "value": "cancelled" } |
||
Options |
|||
accept: application/xml (default) accept: application/json |
|||
Return Value on Success |
Typical Return Values on Failure |
||
200 OK – When the report execution was successfully stopped, the server replies with the same status: XML: <status>cancelled</status> JSON: { "value": "cancelled" } 204 No Content – When the report specified by the request ID is not running, either because it finished running, failed, or was stopped by another process. |
404 Not Found – When the request ID specified in the request does not exist. |