I'm trying to create a Jira component via the REST API.
I POST to https://my.atlassian.net/rest/api/3/component
In the POST request body I set:
{
"name": "Component 1",
"description": "This is a Jira component",
"project": "ABC",
"assigneeType": "UNASSIGNED",
"leadAccountId": "myaccountid"
}
A project with key ABC exists. And when I GET https://my.atlassian.net/rest/api/3/project/ABC
I get a proper response with:
"key" : "ABC"
So it's there and I have access to it.
But when I send the POST to create the component I always get a 404 back with:
{ "errorMessages": [ "No project could be found with key 'ABC'." ], "errors": {}}
And ideas, why this is happening?
I'm using Postman with an API Token. The user is a Jira Admin.