Upload image
- Authentication
This method requires authentication.
Summary
Upload image to filestorage
Description
This method uploads your image to filestorage and retrieves an object with info you need to pass to Create new partner order.
Form-data Parameters
- your-image-name: image
Uploading image
Response
The response data is an array with one object of this structure:
- id: string
Unique id of uploaded image. You need it to pass to Create new partner order
- url: string
URL to get uploaded image
- mimetype: string
Mimetype of uploaded image. Notice, uploading images get compressed so mimetype will be different from origin
Good Response example
{
"status": "ok",
"statusCode": 200,
"data": [
{
"id": "65c25a2bb95cb9c9f8561dbf",
"url": "https://photos.anymaster.com/task/65c25a2bb95cb9c9f8561dbf.webp",
"mimetype": "image/webp",
}
]
}
Bad Response Examples
http code | response example |
|---|---|
| see 401 Unauthorized |
|
Last modified: 09 February 2024