The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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