Skip to main content
POST
/
task
/
photo
/
{forRenameFile}
Upload image for task
curl --request POST \
  --url https://apiweb.mile.app/api/v3/task/photo/{forRenameFile} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form photo='@example-file' \
  --form 'forRenameFile=<string>'
{
  "status": true,
  "url": "https://mile-v3.s3.ap-southeast-1.amazonaws.com/development/628dd142dd11f3369825bcf5/2022/06/22/1655862450_62b2744ee22400003b006bb2_0_photo1.jpg"
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

multipart/form-data
photo
file
required

mime file jpg

forRenameFile
string

this parameter for rename file what to want, after timestamp. Example: 62b2744ee22400003b006bb2_0_photo1

Response

Success

status
boolean

Status of response.

url
string

URL of image task.