Forums

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

How can we add the templates in to jira cloud via API while we create the project?

d.b.kumar.chauhan
December 23, 2025

Hi Team,

Actually, I want to do the automation for adding the templates using REST Api. So, is Atlassian provide any rest Api so that I can add the custom templates and default templates. If anyone know please help me on this.

1 answer

0 votes
Marc -Devoteam-
Community Champion
December 23, 2025

Hi @d.b.kumar.chauhan 

What templates are you referring to, space templates?

Os you can create a space based on a template?

You would first have to create a template and then you can use this, but this is a premium subscription function.

And only for custom templates

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

d.b.kumar.chauhan
December 24, 2025

Hi @Marc -Devoteam- 

Thanks For replying but when I have tried this then I am getting below error. Can you help me on this.

{
    "errorMessages": [
        "Invalid request payload. Refer to the REST API documentation and try again."
    ]
}

POST API:  https://axxxxxxxxx.atlassian.net/rest/api/3/project-template

Body:


{
  "details": {
    "description""This is a project for Testing Purpose",
    "key""TEST1233",
    "language""en",
    "name""TEST1233"
  },
  "template": {
    "boards": {
      "boards": [
        {}
      ]
    },
    "project": {
      "pcri": {},
      "projectTypeKey""software"
    },
    "workflow": {
       "statuses": [
            { "name""To Do""statusCategory""TODO" },
            { "name""In Progress""statusCategory""IN_PROGRESS" },
            { "name""Done""statusCategory""DONE" }
          ]
    }
  }
}
Marc -Devoteam-
Community Champion
December 24, 2025

Hi @d.b.kumar.chauhan 

Did you create a template from an existing project, you need to be on an enterprise subscription to use this feature

This is a mandatory action, to use this API endpoint.

 

d.b.kumar.chauhan
December 24, 2025

Hi @Marc -Devoteam- 

Thanks Yes, I am using Jira Cloud Enterprise, and I am testing this with a site admin account.I understand that this API is intended to be used after creating a custom project template from an existing project (UI: Project settings → Save as template).
Whether the template must already exist (created via UI) before this endpoint can be used

My confusion is around the request payload requirements for POST API Even with Enterprise access, the API returns error

Marc -Devoteam-
Community Champion
December 24, 2025

HI @d.b.kumar.chauhan 

In my knowledge you need to provide all details as in the example in the call, I don't think you can leave out scheme options.

For default projects, see API endpoint; https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-post 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events