title: Send file using Axios Assyst REST API
body: <p>Working in Blue Prism .Net environment utilising the HTTP utility to make calls to Axios Assyst (an IT service desk 3rd party software).</p>
  <p>My HTTP request is as per below:</p>
  <pre><code>POST /assystREST/v2/site/10/attachments/binary HTTP/1.1
  Host: &lt;myserver&gt;:&lt;myport&gt;
  Content-Type: multipart/form-data; boundary=----WebKitFormBoundary&lt;base64 encode here&gt;
  Accept: application/json
  Authorization: Basic &lt;base64 encoded key&gt;
  {
  &quot;eventId&quot;: 10010045,
  &quot;fileName&quot;: &quot;C:\Users\Me\Desktop\MyFile.msg&quot;,
  &quot;attachment&quot;: &quot;data:;base64,&lt;base64 encoded file&gt;
  &quot;onBehalfOfUser&quot;: &quot;MR ROBOT&quot;,
  &quot;custom&quot;: {},
  &quot;attachedByUserId&quot;: &lt;my ID&gt;,
  &quot;name&quot;: &quot;C:\Users\Me\Desktop\MyFile.msg&quot;,
  &quot;event&quot;:{
      &quot;assystRESTType&quot;: &quot;event&quot;,
      &quot;assystRESTXMLType&quot;: &quot;eventDto&quot;,
      &quot;id&quot;: 10010045
  },
  &quot;attachedByUser&quot;:{
      &quot;assystRESTType&quot;: &quot;assystUser&quot;,
      &quot;assystRESTXMLType&quot;: &quot;assystUserDto&quot;,
      &quot;name&quot;: &quot;Mr Robot - Test&quot;,
      &quot;id&quot;: &lt;my ID&gt;,
      &quot;shortCode&quot;: &quot;MR ROBOT&quot;
  }
  }
  </code></pre>
  <p>I can create and close my tickets but unable to send/save files to my newly created tickets. I get a <code>HTTP STATUS CODE 410-GONE</code> and the below exception JSON response:</p>
  <pre><code>{
  &quot;type&quot;: &quot;NotFoundException&quot;,
  &quot;message&quot;: &quot;The requested resource is not available.&quot;,
  &quot;messageKey&quot;: &quot;rest.exceptions.NotFoundException&quot;,
  &quot;diagnostic&quot;: &quot;Could not find resource for relative : /site/10/attachments/binary of full path: http://server:port/assystREST/v2/site/10/attachments/binary&quot;
  }
  </code></pre>
  <p>I'm following the instructions and guidelines noted in the official Axios Assyst Web Service wiki(per the below link), i.e. I'm using multipart/form-data while sending the file, a .msg file, and the binary of said file (yes I know this adds 33% more to the file size): <a href="https://wiki.axiossystems.com/assyst10SP75Wiki/index.php/Integrations:assystREST#Attachments" rel="nofollow noreferrer">https://wiki.axiossystems.com/assyst10SP75Wiki/index.php/Integrations:assystREST#Attachments</a></p>
  <p>My issue is that 400 status codes would denote an issue on the client side but I've checked internally re firewall/port being used and nothing is being blocked.</p>
  <p>I've reasearched 410 status codes and it would seem that the issue is server side but one that the server is not willing to elaborate on.</p>
  <p>For testing I'm using Postman as it allows for greater flexibility rather than using Blue Prism, the JSON response is the same.</p>
  <p>Looking for some guidance re status code 410 and possible solutions, note I've limited scope re options due to Blue Prisms .net vbo's.</p>