Hi,
I had tried what you have suggested earlier but I still get the same error. A sample raw request is as below :
Request
POST https://rally1.rallydev.com/slm/webservice/v2.0/testcase/create?key=dlGQ6YbGgcnm6pxWrVhhds48mwU2UnNxVssYndWM HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 455
Host: rally1.rallydev.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Cookie: JSESSIONID=qs-app-011vkksqypvczy7ngp5zwmdlhxh.qs-app-01; SERVERID=e0833b3595974942c2e7730f94e0b700cdb77178; __cfduid=dba6f46b4a3a4a9773cf98d4941ab618b1483443669
Cookie2: $Version=1
{
"testcase": {
"Name": "Ignore:Newly added testcase associated to a Story3",
"Description": "Test creation of Story3",
"Owner": "https://rally1.rallydev.com/slm/webservice/v2.0/user/28138408395",
"Objective": "Test objective of Story3",
"WorkProduct": "https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement/61375703434",
"PreConditions": "1. Hi
2. Hello",
"Project": "17133096258",
"Notes": "Adding a test case"
}
}
Response
{"CreateResult": {
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"Errors": ["Not authorized to perform action: Invalid key"],
"Warnings": []
}}
Regarding ApiKey, I have used it with Java code and it works like a charm but it doesn’t work with a rest client like Soap UI (appended ApiKey instead of key).
To my understanding, it has something to do with cookies session.
Thanks,
Chandan Gupta