Scheduling a Report

To schedule a report, create its job descriptor similar to the one returned by the GET method, and use the PUT method of the V2/jobs service. Specify the report being scheduled inside the job descriptor. You do not need to specify any job IDs in the descriptor, because the server will assign them.

Method

URL

PUT

http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/

Content-Type

Content

application/xml

application/json

A well-formed XML or JSON job descriptor.

Return Value on Success

Typical Return Values on Failure

201 Created – The body contains the XML job descriptor of the newly created job. It is similar to the one that was sent but now contains the jobID for the new job.

404 Not Found – When the report specified in the job descriptor is not found in the server.

Version: 
Feedback
randomness