Docs

Update translation

Replaces the text of a translation’s cues. Timings are locked to the source subtitle: changing a cue’s timing, or the number of cues, returns 422.

PUT
/v1/videos/{id}/translations/{lang}

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
lang*string

BCP-47 language code of the track.

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/translations/es" \  -H "Content-Type: application/json" \  -d '{    "cues": [      {        "index": 0,        "start": 0.5,        "end": 3.2,        "text": "Welcome to the show."      }    ]  }'
{
  "language": "es",
  "label": "Espanhol",
  "status": "ready",
  "hasEdit": true,
  "outOfDate": true,
  "generatedByAi": 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"
}