POST /uploads
Upload images to the service. Only JPEG images are supported. You can also upload image by URL.
Adress: POST https://instance_name/api/v1.5/uploads
Content-type: multipart/form-data
Note
The number of requests to the point is limited to 100 requests per minute.
Request body parameters
datafile
binary image file
Image in JPEG.
Request example
curl -i -X POST
https://test.inspector-cloud.com/api/v1.5/uploads/
-H ‘Authorization: Token <<your_token>>’
-F "datafile=@/path/to/file/filename.jpg"
Response example
Response code: 201 (CREATED)
{
"id": 156673,
"url": "https:/test.inspector-cloud.com/media/12345678-1234-5678-1234-567812345678.jpg",
"width": 720,
"height": 1280,
"created_date": "2016-08-31T10:32:15.687287Z",
"duplicate":false
}
Response definitions
id
string
Image ID.
width
integer
Image width in pixels.
height
integer
Image height in pixels.
url
url
Image url.
created_date
datetime
Date and time when the image was uploaded.
duplicate
bool
The value is «True/False». «True» if file is a duplicate.