Forums

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

302 response from REST create project

Ian B
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!
August 2, 2022

I am trying to create a project using the REST API. The docs provided say to send a POST request to /rest/project/ and I have additionally been trying /rest/api/3/project/ . I have been using a PAT for authentication and have copied the fields from the docs exactly so don't think the issue can be on my end. I am thinking it could have something to do with the request being lost on redirect and the response body from the api is just an arbitrary login page. I am also using the HttpClient in ASP.net. Attached are my the headers in my request!

headers.png

1 answer

0 votes
Brant Schroeder
Community Champion
December 1, 2022

@Ian B Welcome to the Atlassian community

I usually see this happen when the you are using http in your calls but the server is setup for https.  Check the url that you are hitting.

Suggest an answer

Log in or Sign up to answer