multipart/form-data

Body

The image to upload and the container where it will be stored

  • The image to upload

    Maximum value is 2048.

  • container string Required

    The container where the image will be stored,default container will be used if not specified , you can specify subdirectories by separating them with a slash

Responses

  • 201 application/json

    Returns the created Url

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • 404 application/json

    Not found - The container you specified does not exist

    Hide response attribute Show response attribute object
  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

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"
    ]
  }
}