Forums

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

API call /rest/api/2/project/{key}/permissionscheme retuens 403 where as from UI it is success

Rajitha Rodda November 24, 2021

I am trying to update the permission schema using JIRA API call  - 

/rest/api/2/project/{key}/permissionscheme  but it always returns 403 where as from ui i am able to update permission schema with the same user id

API call -
curl --location --request PUT '{baseurl}/rest/api/2/project/{key}/permissionscheme' \
--header 'Authorization: Basic token' \
--header 'Content-Type: application/json' \
--data-raw '{"id": 1234}'

1 answer

0 votes
Tom Lister
Community Champion
November 24, 2021

Hi @Rajitha Rodda 

When i use curl , the syntax I use to pass credentials is

curl -u "username:password" 

 

You could try using API Tokens

https://www.resolution.de/post/how-to-create-api-tokens-for-jira-server-s-rest-api/

Suggest an answer

Log in or Sign up to answer