REST API: Edit Job Issues

Hi Guys,

I'm following documentation to modify Report Schedule (Job):

The goal is to modify mailNotification subModel, but even with simple update I encounter issues.

Jasper Reports Server version: 6.3.0

POST /jasperserver/rest_v2/jobs/11056/ HTTP/1.1
Authorization: Basic <token>
Accept: application/job+json
Content-Type: application/job+json
Cache-Control: no-cache
  "label": "Modified Label"

I've tried providing a full Job descriptor and minimal descriptor, but response is still the same.

It's HTML login page:

        <title>TIBCO Jaspersoft: Login</title>

Also log file indicates CSRF error:

2017-01-23 10:19:17,166 ERROR CsrfGuard,http-apr-0:0:0:0:0:0:0:0-10080-exec-12:44 - potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:<ipaddress>, method:POST, uri:/jasperserver/rest_v2/jobs/11056/, error:required token is missing from the request)

Also to mention, other GET requests work perfectly fine.

mr.tonic's picture
Joined: Jun 26 2016 - 4:53am
Last seen: 4 years 6 months ago



I see the same error in my logs, but when I add X-REMOTE-DOMAIN to my POSTMAN put request, I still get this error:


HTTP Status 401 - Domain 1 forbidden.

type Status report

message Domain 1 forbidden.

description This request requires HTTP authentication.

Apache Tomcat/7.0.32


any idea?



krikke_wl - 5 years 3 weeks ago

1 Answer:

If anyone has the same issue.

To allow testing of the REST API through a browser, configure your browser REST client to include the following header in every request:



mr.tonic's picture
Joined: Jun 26 2016 - 4:53am
Last seen: 4 years 6 months ago