cancel
Showing results for 
Search instead for 
Did you mean: 

Claim task with REST API

svenb1981
Champ in-the-making
Champ in-the-making
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

1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Did you try to add Content-Type: application/json to the header?

Regards
Martin