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.
Hello,
You can find the correct url here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Alexey. I somehow never came across that documentation in all of my searches. That resolved my Error 405 problem. Now, I am getting another Error, but I will create a fresh post for that one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.