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
- Base URLhttps://api.sponsorunited.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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.