AnsweredAssumed Answered

Claim task with REST API

Question asked by svenb1981 on Jun 13, 2014
Latest reply on Jun 16, 2014 by martin.grofcik
Hello!

I tried to claim a user task using the REST API with FireFox RESTClient plugin, but I'm getting an "415 Unsupported Media Type" error.

The post request URL is http://192.168.56.102:8080/activiti-rest/service/runtime/tasks/3548 and the body looks like
{
  "action":"claim",
  "assignee":"kermit"
}

After submitting the request I'm getting the following response headers:

    Status Code: 415 Unsupported Media Type
    Accept-Ranges: bytes
    Content-Type: application/json;charset=UTF-8
    Date: Fri, 13 Jun 2014 15:16:33 GMT
    Server: GlassFish Server Open Source Edition 4.0, Restlet-Framework/2.1.4
    Transfer-Encoding: chunked
    X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition 4.0 Java/Oracle Corporation/1.7)

Has anyone an idea what is going wrong?

Thanks and best regards
Sven

Outcomes