Insert caption
documentedUpload a caption track to a video.
POST /captionsCaptionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://www.googleapis.com/upload/youtube/v3/captions?part=snippet" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: multipart/related; boundary=BOUNDARY" \
--data-binary @- << 'BOUNDARY_PAYLOAD'
--BOUNDARY
Content-Type: application/json; charset=UTF-8
{
"snippet": {
"videoId": "{{$video_id}}",
"language": "{{$language}}",
"name": "{{$name}}",
"isDraft": {{$isDraft}}
}
}
--BOUNDARY
Content-Type: text/plain; charset=UTF-8
{{$caption_file_contents}}
--BOUNDARY--
BOUNDARY_PAYLOAD