Forums

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

Updating permission scheme with API throws 500

Alon Stern
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2022

When creating with the Rest API a permission scheme with "assignee" and "reporter" for "BROWSE_PROJECTS", i.e.,

POST /rest/api/3/permissionscheme
{
  "permissions": [
    {
      "holder": {
        "type": "assignee"
      },
      "permission": "BROWSE_PROJECTS"
    },
    {
      "holder": {
        "type": "reporter"
      },
      "permission": "BROWSE_PROJECTS"
    }
  ],
  "name": "test",
  "description": "description"
}

Any update to that permission scheme with the API returns 500 internal error.
e.g., changing the description with

PUT /rest/api/3/permissionscheme/10038
{
  "permissions": [
    {
      "holder": {
        "type": "assignee"
      },
      "permission": "BROWSE_PROJECTS"
    },
    {
      "holder": {
        "type": "reporter"
      },
      "permission": "BROWSE_PROJECTS"
    }
  ],
  "name": "test",
  "description": "description2"
}

returns 500

Would appreciate help with this.
Thanks!

0 answers

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