Update Caption
update_captionReplace the file of a caption track on one of your videos, or show or hide the track.
Instructions
Replace the file of a caption track on one of your videos, or show or hide the track.
Quota: 502 units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to the new caption file, at most 100 MB. | |
| name | No | Name of the track, when the video has several in that language. | |
| draft | No | Whether the track is hidden from viewers. | |
| video | Yes | Video ID or URL. | |
| language | Yes | Language of the track, e.g. en or en-US. | |
| my_channel | No | Which of your logged-in channels to work on: UC… ID, @handle or exact title. Omit for the default channel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | asr: made by YouTube's speech recognition. forced: shown when no track is chosen. | |
| name | No | ||
| draft | No | Not shown to viewers yet. | |
| status | No | serving, syncing, or failed. | |
| language | Yes | ||
| video_id | Yes | ||
| updated_at | No |