Question: How do we delete single permission for resource using REST API?
Answer: To delete the single permission of the resource, we need to specify a recipient in the URL of the DELETE method to remove only that permission.
Please find below Method and URL used for this request:
Method: DELETE URL: http://<host>:<port>/jasperserver[-pro]/rest_v2/permissions/path/to/resource;recipient=<recipient>
The arguments used for this request is as below:
1) recipient Type/Value: string required, Description: The recipient format specifies the user or role, the organization if necessary, and the object ID. The slash characters must be encoded, for example:
user:%2Forganization_1%2Fjoeuser
The Return values for this request is as below:
a) For Success: 204 No Content - The request was successful.
b) For Failure: 404 Not Found - If the resource or the recipient in the URL is invalid..
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now