AnsweredAssumed Answered

[REST API] Add url to a task

Question asked by luca.trioschi on Oct 3, 2012
Latest reply on Oct 11, 2012 by jbarrez
Hello everybody,
maybe i'm asking a stupid question, but i cannot find the solution to my problem…

I have to attach an URL to a task of mine (taskId = 13780).
I followed http://activiti.org/userguide/#N12BF1 and i made the request:

url :
http://my_server_ip/activiti-rest/service/task/13780/url
method:
PUT
content:
{"name":"Google","description":"Good search site","url":"http://www.google.com','type':'url"}

The result code was 200 with content
{"name":"Google","id":"13862","type":"url","description":"Good search site","url":"http://www.google.com"}

but when i go to see my task's attachments i can see nothing!
I'm sure about the task's ID and tomcat's log reports no errors.

Where am I wrong?

Thanks in advance.

Outcomes