Forums

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

Error while making the project in service desk using the rest API

divya_sharma
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!
July 15, 2021

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 ?

0 answers

Suggest an answer

Log in or Sign up to answer