int schemeId=10021
def resultGroupb = put("/rest/api/2/permissionscheme/${schemeId}")
.header('Content-Type', 'application/json')
.body([
"permissions": [
[
"holder": [
"parameter": "Oracle Capacity",
"type": "group"
],
"permission": "ADMINISTER_PROJECTS"
]
],
"name": "Example permission scheme",
"description": "description"
]).asString()
403 usually means you have no permission to do that change.
Do you have permission to change schemes through the UI?
You can follow this guide, how to do it form the UI
https://confluence.atlassian.com/adminjiracloud/managing-project-permissions-776636362.html
General tip, know how the app work from the UI, than go for API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.