Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

REST API POST call works in postman, but not from C# application

Michael Cochrane
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!
February 14, 2022

I'm making a POST call to https://<site>.atlassian.net/rest/api/3/issue 

In the C# app, the JSON payload is pretty basic:

{"update":{},"fields":{"summary":"Test from c# migration app","issuetype":{"id":"10001"},"project":{"id":"10000"},"description":null}}
where issuetype and project are valid ids. I get the following error:
{"errorMessages":[],"errors":{"issuetype":"Specify an issue type"}}
When I paste the same payload into Postman, the POST is successful - all headers are the same and I'm using the same basic auth token. Any ideas why I'd be seeing these errors?

1 answer

1 accepted

0 votes
Answer accepted
Michael Cochrane
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!
February 16, 2022

Resolved - realized that issuetype Ids were not global, and may be different for each project

Suggest an answer

Log in or Sign up to answer