Create Asset File

/assets/{id}/files

Create Asset File [POST]

Create a new asset file for an asset using Multipart Form Data

Upload File Limit

5 MB

Allowed Mime-Types

  • image/png
  • image/jpeg
  • image/gif
  • image/bmp
  • application/pdf
  • application/msword
  • application/vnd.ms-excel
  • application/vnd.ms-powerpoint
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document

Authorization: Admin, Web, Mobile

Request

Headers
<code>Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryr5A69meUEQecfMVg
Body
------WebKitFormBoundaryr5A69meUEQecfMVg
Content-Disposition: form-data; name="application"; filename="Maintenance_History.pdf"
Content-Type: application/pdf

�����JFIF��`�`����Exif��MM�*����2�������VGF�������GI�����2����������������������i�������j����2009:03:12 13:37:43��������������������������54��������54���������������2008:03:14 13:59:26�2008:03:14 13:59:26���������������������������&������
��������H������H��������JFIF���������C�
------WebKitFormBoundaryr5A69meUEQecfMVg--

Response 200

Body
{
    "item": {
      "id": 9082,
      "name": "Maintenance_History",
      "description": null,
      "createdAt": "2014-04-07T16:19:27-04:00",
      "createdBy": 1900,
      "fileType": "application/pdf",
      "size": 2624,
      "extension": ".pdf"
    }
  }

Still need help? Contact Us Contact Us