V2 > Media

Updates a media.

put/1/vod/channel/{channel}/media/{media}

Path parameters

channelinteger required

The Channel unique identifier

mediainteger required

The Media unique identifier

Request body

folder_idinteger required

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

category_idinteger

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

language_idinteger

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

namestring required

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

descriptionstring
validatedboolean
publishedboolean
passwordstring
streamsstring

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

shot_boundariesstring[]
durationnumber

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

client'"cli"' | '"http"' required
http_ipstring ip

<br/>This field must be present and not empty if the client field is equal to any of the following:http

http_user_agentstring

<br/>This field must be present and not empty if the client field is equal to any of the following:http

cli_userstring

<br/>This field must be present and not empty if the client field is equal to any of the following:cli

cli_hostnamestring

<br/>This field must be present and not empty if the client field is equal to any of the following:cli

debugboolean

Response

OK

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

Result of the HTTP request

Example response

{
  "result": "success"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.