While making the project in the service desk using the rest API . It is showing me this error :
{
"errorMessages": [],
"errors": {
"projectType": "An invalid project type was specified. Make sure the project type is available in your Jira instance. Please talk to your Jira administrator if you need more help."
}
}
Curl which I'm using :
curl -X POST \
https://<instancename>/rest/api/3/project \
-H 'Authorization: Basic <abcd>' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 4a9cfc32-34a9-43b6-87de-618a5b3c912f' \
-H 'cache-control: no-cache' \
-d '{
"key": "SERRT",
"name": "TestDemoService",
"projectTypeKey": "service_desk",
"leadAccountId": "123"
}'
I have also referred https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-post for creating the project. but using the curl
mentioned in the portal is also giving the same error.
Also in the swagger provided on the Jira side contains an enum of the project type which also consists of software, business and service_desk, and using that enum 'service_desk' it was showing me the same error.
Could someone please help me in this ?