Upload an image to the storage server and return the url (manager)
POST /manager/images
curl \
-X POST https://domain.tld/api/v2/manager/images \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: multipart/form-data" \
-F "image=image.jpg" \
-F "container=myContainer/subfolder"
Response examples (201)
{
"url": "https://storage.com/myContainer/subfolder/image.jpg"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (404)
{
"message": "Client error: `PUT https://storage.com/badContainer/subfolder/image.jpg` resulted in a `404 The specified container does not exist.` response"
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}