I use Camunda REST API “Delete Task Attachment” trying to delete a attached file. However, I got following error message.
Please help.
Thanks
Steven
Request:
DELETE http://localhost:8099/engine-rest/engine/default/task/4bd4edcd-675b-11e7-ad9c-0026b981f0a0/attachment/c6f230df-6768-11e7-ad9c-0026b981f0a0 HTTP/1.1
Host: localhost:8099
Connection: keep-alive
Content-Length: 0
Accept: application/hal+json, application/json; q=0.5
Origin: http://localhost:5200
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Content-Type: application/json
Referer: http://localhost:5200/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4
Responds:
HTTP/1.1 404 Not Found
X-Powered-By: Express
Access-Control-Allow-Origin: http://localhost:5200
Vary: Origin
Access-Control-Allow-Credentials: true
Content-Security-Policy: default-src ‘self’
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 258
Set-Cookie: taasSession=eyJzc29Ub2tlbiI6IjZjMWUxYjk2LTZiZDctNGU5OC04Y2Y4LWI5YjQ2NDVmYjAyNSIsImxvZ2luVXJsIjoiL2xvZ2luLmh0bWw/dGVuYW50PS9taWNyb3NvZnQiLCJyb3V0ZVBhdGgiOiIvbWljcm9zb2Z0IiwidGVuYW50SWQiOiI5NTI3ZjNlZC05YjE0LTQwOGItOTY4ZC1iOGQxOTk2NmNkNTYifQ==; path=/; expires=Thu, 13 Jul 2017 19:26:18 GMT; httponly
Set-Cookie: taasSession.sig=9NSKYX7r1b72hH525L9eMZ5Zg1M; path=/; expires=Thu, 13 Jul 2017 19:26:18 GMT; httponly
Date: Thu, 13 Jul 2017 18:26:18 GMT
Connection: keep-alive
Cannot DELETE /engine-rest/engine/default/task/4bd4edcd-675b-11e7-ad9c-0026b981f0a0/attachment/c6f230df-6768-11e7-ad9c-0026b981f0a0