AnsweredAssumed Answered

Uploading Attachement in comment using API

Question asked by Jerry Beisser on Dec 15, 2016
Latest reply on Apr 10, 2017 by samanage_api_test@dpr.com

I am trying to upload an attachment into an comment in an incident using the API and Powershell.

 

I am using the below details :

$headers = @{"Accept"="application/vnd.samanage.v1.3+xml"}

$filePath = pathtofile

$ContentType "multipart/form-data"

$Uri = $uri = "https://api.samanage.com/attachments/incidentid/attachments.xml"

 

And i cannot get it to work, do i need to use the same build up as a xml body with tags? or am i using the incorrect uri ?

 

Jerry

Outcomes