V2 > Share

Creates a new share to a given target

Creates a share media or playlist, returns a share having id in order to build this url : https://player.vod2.infomaniak.com/res/embed/{{ ID }}.html

post/1/vod/channel/{channel}/share

Path parameters

channelinteger required

The Channel unique identifier

Request body

channel_idinteger

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

target_type'"vod_media"' | '"vod_playlist"' required
player_idinteger

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

encoding_idinteger

<br/>This field must be present and not empty if the target_type field is equal to any of the following:vod_media<br/>This field must exist on the encodings database in the id column.

commentstring
timestampnumber
validityinteger

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 1 revision of this API.