Images

Upload an image from a URL

Downloads an image from the provided URL, uploads it to S3, and returns the upload result. SVG and ICO images are drawn to a PNG before they are stored. An image that cannot be processed returns 422. When type is "asset", creates an Image record in the database.

post/api/upload-image-from-url

Request

Request body

urlstring url required

The URL of the image to upload

typestring nullable

The upload type category

Example request

{
  "url": "https://example.com/image.png",
  "type": "generic"
}

Response

Upload result (S3 paths or Image asset record)

object required

Changes

No recorded changes to this operation across all 2 revisions of this API.