My question:
I try to test POST requests on JIRA which eventually I have to create a ticket.
So I want to see if the server’s response POST, however, I get a “400 Bad request” error every time. Moreover, the error points out that “The request cannot be fulfilled due to bad syntax”.
Details (like screenshots):
How I found the problem / I’ve already tried:
Method → Post
Body → raw → JSON
{
"fields": {
"project":{
"key":"SA"
},
"summary":"Jira Rest API via Postman",
"description":{
"type":"doc",
"version":1,
"content":[{
"type":"text",
"text": "Creating an issue using project SA and issue type Story Using REST API via POSTMAN"
}
]
},
"issuetype":{
"name": "Story"
}
}
}
I have tried this too:
{
"fields": {
"project":
{
"key": "SA"
},
"summary": "Jira Rest API via Postman",
"description": "Creating of an issue using project keys and issue type names using the REST API",
"issuetype": {
"name": "Story"
}
}
}