Infomaniak Vod icon

Infomaniak Vod

Interact with Infomaniak Vod API

Actions349

V3 > Subtitle → Create Subtitle.

AI-generated

Summary

Create a new subtitle entry for a specific media item by providing the media identifier, language, and optional details such as name, file content, timing lines, default status, and publication state.

Inputs

  • Authentication (required) — Choose the authentication method to use: OAuth2 or API Key.
  • Media (required) — The identifier (path) of the media item to which the subtitle will be attached.
  • Language (required) — Identifier of an existing Language to associate the subtitle with.
  • Additional Body Fields — Optional subtitle details including Name (filename without slashes or special chars), File (subtitle content or path), Lines (array of subtitle lines with start/end/timing info), Default (boolean to indicate if this subtitle is the default), and Published (boolean to indicate whether the subtitle is publicly accessible).
  • Return Full Response — Optionally return the full API response instead of just the parsed data.

Output shape

a single subtitle record object representing the newly created subtitle or the full API response if requested

The returned subtitle includes fields based on what the API provides after creation. If 'Return Full Response' is true, the entire API response is returned; otherwise, only the relevant subtitle data is extracted.

Examples

Example 1: Create a subtitle in French for a specific video media with lines and mark it as default and published.

Set Media to the media path, Language to the French language identifier, provide Body Lines as an array, set Default to true, Published to true, and supply an appropriate Name for the subtitle file.

Links

Discussion