OpenTV ENTera & OpenTV Platform Documentation

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:

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

Response

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

{
    "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.