putCaptionTranslation
Store translated caption units into a language layer for an asset, batch by batch. This adds a separate translation layer without changing the original transcript or switching captions.
Instructions
Store your translation of caption units for one asset in a language layer: units lists each unit as { id, text }: its id from getCaptionTranslationUnits and your translation of it. It merges into the layer, which the first call creates, so send long transcripts in batches. language is the layer's code (fr, pt-BR); label is the name the editor's language picker shows, such as Français (default: the code). Unknown unit ids refuse the whole call. The transcript is never changed: this is a separate layer the captions can show. It does not switch the captions to it: setCaptionSettings with this language does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| units | Yes | ||
| assetId | Yes | ||
| language | Yes | ||
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. |