Upload, replace or delete a caption track
manage_youtube_captionUpload, replace, or delete subtitle tracks on your connected YouTube channel. Pass SRT/WebVTT content and language to attach, update, or remove captions, with confirmation for deletion.
Instructions
Attach a real subtitle track to one of the connected channel’s videos, replace one, or delete one. Pass the caption file BODY itself as text (SRT or WebVTT), not a URL. language is required and may not be guessed — YouTube uses it to decide which viewers see the track. A track YouTube generated itself (trackKind ASR) is refused by name: YouTube owns it and it cannot be edited or deleted through any API; to replace it, upload your own track in the same language and YouTube prefers yours. Delete is confirm-gated — viewers with captions on lose them immediately and YouTube stops indexing the video by that text, though it can be re-uploaded if you still have the file. 0 credits. Needs a connected YouTube channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | a label shown in YouTube’s caption picker | |
| text | No | the caption file body — SRT or WebVTT. Required for upload. | |
| draft | No | true keeps the track unpublished while you review it | |
| action | Yes | upload | update | delete | |
| confirm | No | required to delete | |
| videoId | No | required for upload; strongly recommended for update and delete so the track can be resolved and read back | |
| language | No | BCP-47 code such as en, es, pt-BR. Required for upload. | |
| captionId | No | required for update and delete (from list_youtube_captions) |