1. We are able to add an attachment through the web portal,
2. The ticket which we try to update is already existing and it's visible on the portal and it can be retrieved by it's id using the Rest API too.
3. We are using the session correctly to authenticate the request and permissions are ok.
4. Version is 12.7.2
5. We tried to consume this Rest API using Postman and from the mobile application and it did not work.
6. We followed everything in your documentation of the Rest API guide.
This is very urgent and it's a show stopper for us, please give the solution ASAP, we prefer to give us a working sample of a request to add attachment to existing ticket.
This is Url:
http://********:8081/helpdesk/attachment/upload?type=jobTicket&entityId=1
This is my HTTP Request:
POST /helpdesk/attachment/upload HTTP/1.1
Host: ********:8081
Cookie: JSESSIONID=B9689A70EFAAA1EE7E77B2C3A28D2B20; wosid=sbl1xhEczQ8HdU780g9XWMContent-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="pulltorefresh.png"
Content-Type: image/png
(data)
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="entityId"
1
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="type"
jobTicket
----WebKitFormBoundary7MA4YWxkTrZu0gW
This is the Response :
{
"cause": "ENTITY_NOT_FOUND",
"reason": "ENTITY_NOT_FOUND"
}
400 Bad Request On Postman