Forums

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

Using Default Permission Scheme with Create Project API causes server 500 error

bscott01
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!
November 15, 2021

I am attempting to create a new project in my cloud instance using the Jira REST API. The API documentation states:

permissionScheme

integer

The ID of the permission scheme for the project. Use the Get all permission schemes resource to see a list of all permission scheme IDs.

Format: int64

I use the GET /rest/api/2/permissionscheme to gather the permission schemes on my instance. The "Default Permission Scheme" has an ID of 0. When I pass 0 as the permissionScheme property in my JSON object, I get a server 500 error. I have narrowed it down to that property by trial and error. 

Here is my JSON object:

{
"name": "My New Project",
"key": "MNP",
"projectTypeKey": "software",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-simplified-basic",
"leadAccountId": hidden for security purposes,
"assigneeType": "PROJECT_LEAD",
"description": "",
"url": "",
"issueSecurityScheme": 10000,
"notificationScheme": 10000,
"permissionScheme": 0
}

 

Any help would be appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer