Create a photo
POST
/photos
photos
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://trashnothing.com/api/v1.2/photos' \
--form 'photo=@""'
Response Response Example
200 - Example 1
{
"photo_id": "987-423",
"thumbnail": {
"height": 120,
"url": "https://trashnothing.com/img/2018-02-02/307731-20180119_155358.90x120.jpg",
"width": 90
}
}
Request
Body Params multipart/form-data
device_pixel_ratio
string
optional
Example:
1
photo
file
required
Responses
Modified at 2022-09-11 18:59:47