image
Update an image download variant
Update the image download fields for the provided variant of the provided image.
put/images/{image_id}/downloads/{variant}
Path parameters
image_idstring required
A unique id for an image metadata entry
variantstring required
A unique image download variant identifier
Request body
Example request
{
"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"
}Response
Successfully updated 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"
}