We are using Web Help Desk, version 12.5.0 (Build #12.5.0.1257), and we are experiencing a problem with attachments, since the service "/attachment/upload**" documented in http://www.solarwinds.com/documentation/WebHelpDesk/docs/WHD_API/Web%20Help%20Desk%20API%20Guide.html is not working properly.
Looking at the forum, we found out that this is a known issue (seeUploading attachment to a ticket via the API ), but we didn't succeed in getting it done even using the workaround reported here (similar error).
Step after step, we succeeded in overcoming the problem, finding out that some changes had to be made to the parameters of the "original" API:
- in place of WebObjects session ID (wosid) we must use the sessionKey (previously obtained by invoking the proper service (/WebObjects/Helpdesk.woa/ra/Session?apiKey=XXXXX&username=YYYY);
- in the multipart/form-data, the parameter must be set as "file" and not as "fileUpload" (as documented).
So, the final question is:
- What is the proper way to upload an attachment?
- Is the documented API correct (so, what are we doing wrong?) or we can go on with our corrections (so, will the API be corrected in the new version?)
Thanks in advance for your support.