It's all about the answers!

Ask a question

Workitem creation problem via rest api HTTP 405


Canberk Akduygu (99237071) | asked Dec 19 '13, 2:57 a.m.
edited Dec 19 '13, 2:58 a.m.
Hello,

I am send a POST message to my facroty uri which is https://server:9443/ccm/oslc/contexts/_Kw3GkmJHEeODZojFwTfvdw/workitems

My workitem's JSON representation is
{
    "dc:title":"My first new work item",
    "dc:description":"A description for the new work item",
    "dc:type":
    {
        "rdf:resource":"https:\/\/server:9443\/ccm\/oslc\/types\/_Kw3GkmJHEeODZojFwTfvdw\/task"
    },
}

I have "application/x-oslc-cm-changerequest+json" as "Content-Type" and "text/json" as Accept
I am using RTC 4.0.4

I got this error
{
    "oslc_cm:message": null,
    "oslc_cm:status": 405
}

I am not POSTing something that Rest api cant handle like changing a time sheet entry. What could be wrong?

Accepted answer


permanent link
Eric Jodet (6.3k5101120) | answered Jan 06 '14, 8:36 a.m.
JAZZ DEVELOPER
 Hello,
I would say that dc should not be used here - verified - it does not work - 
but you may rather use dcterms

    "dcterms:title":"My first new work item", 
    "dcterms:description":"A description for the new work item", 
    "dcterms:type": 
    { 
        "rdf:resource":"https:\/\/9.37.26.38:9443\/ccm\/oslc\/types\/_WRViEGfXEeOUe6HHrM5Jkw\/task" 
    }, 

worked for me

Hope it helps,
Eric

Canberk Akduygu selected this answer as the correct answer

Your answer


Register or to post your answer.