Create Question File

/questions/{id}/files

Create Question File [POST]

Create a new question file for a question 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

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": "a927d33e-85a2-42c5-a5b4-b24c1d20c0ff",
		"mimeType": "application/pdf",
		"description": null,
		"createdAt": "2016-02-24T17:36:15.399Z",
		"name": "Parts.pdf",
		"size": 120525,
		"questionId": 330124
	}
}

Still need help? Contact Us Contact Us