Record Type for creation not specified correctly.
![]()
David Khetaguri (11●1●4)
| asked Jan 15 '16, 6:37 a.m.
edited Jan 15 '16, 6:43 a.m. by Ralph Schoon (63.3k●3●36●46)
I want to create pre-filled record using OSLC-Core-Version 2.0, Content-Type application/json, basic authentiation.
Request:
POST OUR_HOST_NAME/cqweb/oslc/repo/OUR_REPO/db/OUR_DB/record
Body:
Response:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://open-services.net/ns/core#" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/">
<Error>
<message>CRRCM9981E: Record Type for creation not specified correctly.</message>
<statusCode>400</statusCode>
</Error>
</rdf:RDF>
Is there any data missing in JSON body that I send?
Where do I find what must be included to the body?
Is "name":"Defect" correct or should it be another value?
|
One answer
![]()
You'd better check the API specification.
https://jazz.net/wiki/bin/view/Main/CqOslcV2#POST Make sure that you include all the mandatory fields in the POST operation, otherwise it will fail. |
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.