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

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
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events