Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble getting all permission schemes with the REST API

Perry Tancredi
Contributor
July 21, 2023

Following the instructions here I'm trying to get all the permission schemes in my instance through the API. When I make the API call, however, I'm getting this error:

{

    "errorMessages": [

        "No content to map to Object due to end of input"

    ]

}

 

The endpoint I'm using is /rest/api/3/permissionscheme with nothing in the body, as the documentation specifies. Anyone know what the issue might be?

1 answer

1 accepted

3 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2023

Hi @Perry Tancredi 

You can get all permission schemes in one API call.

https://<your instance name>.atlassian.net/rest/api/3/permissionscheme/

If you want it per scheme

https://<your instance name>.atlassian.net/rest/api/3/permissionscheme/{scheme id}

example: https://<your instance name>.atlassian.net/rest/api/3/permissionscheme/10001

Perry Tancredi
Contributor
July 21, 2023

Ak! I was using a POST and not a GET

It's all working for me now. Thanks

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events