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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Create Project in Server with REST API

I am trying to create a project using the REST API




curl --request POST \
--url 'https://jira.mydomain.com/rest/api/2/project' \
--user 'admin_user:admin_password' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"description": "Example Project description",
"lead": "myuser",
"url": "http://atlassian.com",
"projectTemplateKey": "com.atlassian.jira-core-project-templates:jira-core-project-management",
"name": "Curl Example",
"assigneeType": "PROJECT_LEAD",
"projectTypeKey": "business",
"key": "ABC004",
"issueSecurityScheme": 10000,
"categoryId": 10300,
"avatarId" : 10324,
"permissionScheme": 0,
"notificationScheme": 10000,
"workflowSchemeId": 10900
}'

 

But I get a internal server error

{"errorMessages":["Internal server error"],"errors":{}}

 

I have used the API to confirm all the projectTemplateKey, issueSecurityScheme, CategoryID,. permissionScheme, notificationScheme and workflowSchemeID are correct values.

 

My searching is not finding anything, does any one have any idea please?

 

1 answer

0 votes

You need a Jira admin to check the log for the precise error but the url looks a bit suspicious. I guess I'd also create a new project from my browser and inspect the REST call and data passed to the server

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