Jump to content
We've recently updated our Privacy Statement, available here ×
  • Deleting a Single Permission using REST API


    Prasad B
    • Features: JasperReports Server Version: v9.0.0 Product: JasperReports® Server

    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..


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...