jasper rest Api integration with java



i want to integrate the rest Api of jasper with my java code using http client. am able to create a new organization and users by passing it  with PP parameter (eg


bt the other rest_v2 api' s are not working and return 401 status (eg ;


Thanks for your valuable time and looking forward for your reply

Thanks & Regards,

Lija G

lija.g's picture
Joined: Mar 5 2019 - 3:46am
Last seen: 8 months 1 week ago

1 Answer:


The 401 response here looks to indicate that your user does not have sufficient permissions to execute the request. The organization should not be creatable by the regular ROLE_USER, only ROLE_ADMINISTRATOR and ROLE_SUPERUSER should be allowed to do that, as well as manage users. Have a look at the bean filterInvocationInterceptor in applicationContext-security-web.xml and applicationContext-security-pro-web.xml to see what roles are required to access certain REST endpoints.

Friendly User's picture
Joined: Oct 8 2009 - 5:59am
Last seen: 10 hours 34 min ago