The POST method also supports other parameters to perform bulk updates on scheduled jobs.
Method | URL | ||
POST | http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs?<arguments> | ||
Argument | Type/Value | Description | |
id? | jobID string | Can be used multiple times to create a list of jobIDs to update | |
replace | true / false | When true, the trigger is replaced from the content being sent and the trigger type is ignored. When false or omitted, the trigger is updated automatically by the scheduler. | |
Content-Type | Content | ||
application/xml | A well-formed XML jobModel descriptor. The jobModel is a fragment of a job descriptor containing only the fields to be updated. See example below. | ||
Return Value on Success | Typical Return Values on Failure | ||
200 OK – Body empty. | 404 Not Found – When the specified job is not found in the server. |
For example, the following request will update the job description in several jobs:
POST request: http://localhost:8080/jasperserver-pro/rest_v2/jobs?id=3798&id=3799&id=3800
And the body of the request contains:
Recommended Comments
There are no comments to display.