image
post/images/{image_id}/downloads
Path parameters
image_idstring required
A unique id for an image metadata entry
Request body
Example request
{
"id": "original",
"height": 1080,
"palette": "bw",
"type": "png",
"width": 1920,
"state": "importing",
"import_started": "2020-04-26T08:05:52Z"
}Response
Successfully created download variant.
Example response
{
"id": "original",
"height": 1080,
"href": "http://download.ons.gov.uk/images/042e216a-7822-4fa0-a3d6-e3f5248ffc35/image-name.png",
"palette": "bw",
"private": "my-private-bucket",
"public": true,
"size": 1024000,
"type": "png",
"width": 1920,
"links": {
"self": "http://localhost:10000/images/042e216a-7822-4fa0-a3d6-e3f5248ffc35/downloads/original",
"image": "http://localhost:10000/images/042e216a-7822-4fa0-a3d6-e3f5248ffc35"
},
"state": "published",
"error": "import process failed",
"import_started": "2020-04-26T08:05:52Z",
"import_completed": "2020-04-26T08:07:32+00:00",
"publish_started": "2020-04-26T09:51:03-00:00",
"publish_completed": "2020-04-26T10:01:28Z"
}