Forums

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

Cannot create a project using JIRA Cloud Server API

zachary_lemura
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!
April 9, 2020

Hi,

 

I am trying to use the POST /rest/api/2/project API method to create a project, using Postman.

My bearer token has the following scopes: r

  • read:jira-user
  • read:jira-work
  • write:jira-work
  • manage:jira-project
  • manage:jira-configuration 

 

When I try to create a project I first get this error when I have my accountId (which I found using the Get Project method (/rest/api/2/project/{projectid}) I get the following error response: 

accountId error.PNGI'm not sure what this error response indicates.

When I remove the accountId from the 'lead' parameter I receive the following error response:

auth error.PNGMy main questions are:

1. Is what I am trying to achieve possible ?(i.e. authenticate my API's using a bearer token to create a JIRA project via API call)

2. What additional scopes do I require to allow my bearer tokens to be used to create projects?

3. What is the meaning of the first error, surrounding GDPR strict mode?

 

Any help is greatly appreciated :)

 

0 answers

Suggest an answer

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

Atlassian Community Events