Path parameters
-
The environment the image will be uploaded from
Values are
platform,widget, ormanager.
POST
/{environment}/images
curl \
--request POST 'https://domain.tld/api/v2/{environment}/images' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: multipart/form-data" \
--form "image=image.jpg" \
--form "container=myContainer/subfolder"
Response examples (201)
{
"url": "https://storage.com/myContainer/subfolder/image.jpg"
}
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"
}