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.
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.