Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Workitem creation problem via rest api HTTP 405

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?

0 votes


Accepted answer

Permanent link
 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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 479
× 369

Question asked: Dec 19 '13, 2:57 a.m.

Question was seen: 4,764 times

Last updated: Jan 06 '14, 8:36 a.m.

Confirmation Cancel Confirm