Problem in posting a defect into rtc project workitem via postman ?
As i am trying to post a defect into rtc project which i have created in the cloud (sandbox trial version on cloud Version 6.0.5) through postman in return i am getting permission denied error...
In UI i can create a defect with same user who is having admin privileges but can not do the same in postman with basic authentication.
My json request for creation of defect
{
"dc:title": "Create rtc 3nd defect for demo from API.",
"dc:creator": {
"rdf:resource": "https://jazz.net/sandbox01-jts/users/**"
},
"rtc_cm:filedAgainst": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/resource/itemOid/com.ibm.team.workitem.Category/_yaSmEd5FEee3zIcQmz-0Eg"
},
"oslc_cm:severity": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/oslc/enumerations/_yaSmEd5FEee3zIcQmz-0Eg/severity/severity.literal.l1"
},
"oslc_cm:priority": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/oslc/enumerations/_yaSmEd5FEee3zIcQmz-0Eg/priority/priority.literal.l1"
},
"rtc_cm:com.ibm.team.workitem.attribute.howFound": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/oslc/enumerations/_yaSmEd5FEee3zIcQmz-0Eg/howFound/howFound.literal.l3"
},
"rtc_cm:foundIn": null,
"rtc_cm:projectArea": {
},
"rtc_cm:teamArea": null,
"rtc_cm:approvals": null
}
Please provide some guidance/suggestions or anything i am doing wrong and thanks in advance.
|
Accepted answer
The error message is a bit misleading. It is very likely that the HTTP request header X-Jazz-CSRF-Prevent is missing. You need this header with the cookie JSESSIONID content as its value. The same issue was discussed in the comment session of the below article.
Arvind Sahu selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
There is no information to be able to provide information. No real error message, no headers that are most important. See How should I ask a question in the Forum if I want to receive useful answers?
Consider the permission error to be correct due to some factor:
wrong login etc.
sorry for that , as i am new