When attempting to use CURL to create a new issue in Jira, I am receiving an error 403. Specifically, I am getting this message:
HTTP/1.1 405 Method Not Allowed
Allow: GET, HEAD, OPTIONS, TRACE
So it seems that I am not allowed to POST. I am wondering if it is a permissions issue? Here is the command I am using:
curl -D- -u userName:apiToken -X POST --data { data } -H "Content-Type:application/json" https://domain.atlassian.net/jira/rest/api/2/issue/
And the "data" being sent is JSON, like this:
{
"fields": {
"project": {
"key": "key"
},
"summary": "summary",
"description": "description",
"issuetype": {
"name": "Bug"
},
"customfield_10200": "data"
}
}
As noted, I created (and am using) an API Token to login.