Skip to main content
Skip table of contents

Update a default image's metadata

Request

To update a default image's metadata, send a PUT request to:

http://<host>:<port>/ihs/v1/metadata/default/{imageName}

Headers

  • Content-Type: application/json

Mandatory arguments

  • imageName (in URL) – the image file name. Note that wildcards are not supported.
  • height (in pixels)
  • width (in pixels)

Optional arguments

  • genre (array with one or more values) – optional

Example

A request with this body updates the metadata of the image that it applies to:

CODE
{  
   "height":1080,
   "width":960,
   "genre":["horror"]
}

Response

If the request is successful, a 200 response is returned with a body that looks like this:

CODE
{
    "message": "Image metadata updated"
}

A bad request returns a 400 response.

See also

For full details of this API, see Create default image metadata by image name.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.