Docs
REST APIVideosUpdate subtitle PUT

Update subtitle

Replaces the cues of the source-language subtitle. The provided array fully overwrites the existing cues (text and timing).

PUT
/v1/videos/{id}/subtitle

Authorization

BearerAuth
AuthorizationBearer <token>

Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.

In: header

Path Parameters

id*string

Video UUID.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api.moviie.ai/v1/videos/497f6eca-6276-4993-bfeb-53cbbbba6f08/subtitle" \  -H "Content-Type: application/json" \  -d '{    "cues": [      {        "index": 0,        "start": 0.5,        "end": 3.2,        "text": "Welcome to the show."      }    ]  }'
{
  "available": true,
  "language": "en",
  "hasEdit": true,
  "showByDefault": true,
  "transcriptDrift": true,
  "cues": [
    {
      "index": 0,
      "start": 0.5,
      "end": 3.2,
      "text": "Welcome to the show."
    }
  ]
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}