Forums

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

Create Project with template over REST call (Postman)

Langer Lukas August 6, 2025

Hello!
I am trying to create a project over a REST call (POST) via Postman, but I am only gettig Error 400 back.

I got the code from the Atlassian Support, just changed some values for my reasons.

Error I am getting back in Postman is:
"Invalid request payload. Refer to the REST API documentation and try again."

 

I allready did the stringify workaround, but I am sending the call as JSON via Postman.

AND I am using this code in an Automation to create a project from a web request.

 

The Postman code might be wrong, but the web request should work.

 

Here is my code - values are cleared for Data privacy reasons, but in my code they are filled correctly.

 

{

"details": {

  "key": "TSTPFV",

  "name": "Testproject in Postman for validation",

  "description": "",

  "accessLevel": "OPEN",

  "leadAccountId": "--",

  "projectTypeKey": "software",

  "enableComponents": true

 },

  "template": {

   "scope": {

    "type": "GLOBAL"

    }

   "project": {

    "pcri": "pcri:project:id:--",

    "fieldLayoutSchemeId": "pcri:fieldLayoutSchemeId:id:--",

    "issueTypeSchemeId": "pcri:issueTypeScheme:id:--",

    "notificationSchemeId": "pcri:notificationScheme:id:--",

    "permissionSchemeId": "pcri:permissionScheme:id:--",

    "workflowSchemeId": "pcri:workflowScheme:id:--"

    }

   "board": {

    "pcri": "pcri:board:id:--",

    "name": "TSTPFV board",

    "enableSprint": false,

    "columns": [

     {

      "name": "Backlog",

      "statusIds": [

       "pcri:status:id:--"

      ]

     },

 {

      "name": "Selected for Development",

      "statusIds": [

       "pcri:status:id:--"

      ]

     },

     {

      "name": "In Progress",

      "statusIds": [

       "pcri:status:id:3"

      ]

     },

     {

      "name": "Done",

      "statusIds": [

       "pcri:status:id:--"

      ]

     }

    ]

   }

  }

 }

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2025

HI @Langer Lukas 

Which API endpoint are you using to create a project?

I just did this on my free tier and it worked, the payload in Postman I used as example

 

{
"assigneeType": "UNASSIGNED",
"avatarId": 10200,
"description": "API test",
"key": "API",
"leadAccountId": "<account_id>",
"name": "API cretaed project",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-simplified-agility-kanban",
"projectTypeKey": "software",
}
0 votes
Aaron Pavez _ServiceRocket_
Community Champion
August 6, 2025

Hi @Langer Lukas 

According to Postman, this is the body you need:

https://www.postman.com/api-evangelist/atlassian-jira/request/l0flj0q/create-project

The JIRA API

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-post

The body:

 

{
"key": "<string>",
"name": "<string>",
"projectTypeKey": "<string>",
"projectTemplateKey": "<string>",
"description": "<string>",
"lead": "<string>",
"leadAccountId": "<string>",
"url": "<string>",
"assigneeType": "<string>",
"avatarId": "<long>",
"issueSecurityScheme": "<long>",
"permissionScheme": "<long>",
"notificationScheme": "<long>",
"categoryId": "<long>"
}
An example that works, taken from here:
{
"key""SOF",
 "name""Software Sample",
 "projectTypeKey""software",
 "projectTemplateKey""com.pyxis.greenhopper.jira:gh-scrum-template",
 "description""Example Project description",
 "leadAccountId""61f93c0fb3ec760068c11a32",
 "assigneeType""PROJECT_LEAD",
 "avatarId""27370"
 }'
Also make sure you have the administer jira global permissions. 
Regards
Langer Lukas August 6, 2025

Hi @Aaron Pavez _ServiceRocket_
So I downloaded the Postman Collection of REST API v3 from the Atlassian Developer site (The Jira Cloud platform REST API)

There I started the "Create custom project" POST call.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-templates/#api-rest-api-3-project-template-post

 

with the code I did post here.

The code I got from an Atlassian Developer.

So here is the thing:
I want to create a project using a custom template. The project should be created by an automation via web request.

 

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events