Upload a sample image

Attach an image to the sample. Allowed extensions are jpg, jpeg, png, gif and bmp, and images can only be added while the order is in progress (status_id 3) - otherwise the endpoint returns the invalid_order_status error.

Send the file as a file field in a standard multipart/form-data request, and leave file fields out of signature generation.

subtype labels what the image shows: 0 Sample, 1 Microscope, 2 Micro Plate, 3 Chromatogram, 4 Client Logo, 5 Other, 6 Other 2, 7 Other 3, 8 Other 4.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params
file
required

The image file to attach.

boolean
Defaults to true

Set this image as the sample's cover image. Defaults to true.

integer
0 to 8
Defaults to 0

What the image shows; see the list above. Defaults to 0.

Headers
string

HMAC-SHA256 request signature. Required only when request signing is enabled for your API key — see the Request Signing guide.

string

Unix timestamp (seconds) of the request, required only when request signing is enabled for your API key. Requests older than 30 seconds are rejected.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json