V2 > Thumbnail

Replaces the thumbnail & poster for a given media

Replaces the thumbnail & poster for a given media with the file provided in the request as multipart/form-data.

post/1/vod/channel/{channel}/media/{media}/thumbnail

Path parameters

channelinteger required

The Channel unique identifier

mediainteger required

The Media unique identifier

Request body

media_idinteger required

<br/>This field must exist on the medias database in the id column.

typestring required
widthinteger

<br/>This field must be present and not empty only if any of the following fields are present:height

heightinteger

<br/>This field must be present and not empty only if any of the following fields are present:width

filestring file required

<br/>The file under validation must have a MIME type corresponding to one of the following extensions:image, gif, png, webp, jpg, jpe, jpeg, pjpeg

Response

Created

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success"
}

Changes

No recorded changes to this endpoint across all 3 revisions of this API.