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}'