Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you