/video/assets/{asset_ID}/subtitle/uploadCreate subtitle upload URLs
Creates signed upload URLs for adding subtitle files to a video asset. Supply language_codes to request URLs for the subtitle languages you plan to upload, then send each .srt or .vtt file to its URL with a PUT request. Call the subtitle upload completion operation after all files have been uploaded.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The identifier of the video asset to which you are adding subtitles.
Subtitle upload settings, including the language codes for which to create signed upload URLs.
List of language codes to upload subtitle file (use <a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'> ISO 639-1 </a> Language Codes)
signed_urls array containing a language code and upload URL for each requested language.Asset ID of Gumlet
List of objects with signed URLs for each language
One documented failure
invalid_language_codeInvalid language code. It must be one of the ISO 639-1 assigned codes.
One documented failure
invalid_api_keyAPI key supplied with request is invalid
One documented failure
unauthorizedYou don't have access to this feature. Please contact your organization owner.
One documented failure
internal_server_errorWe have encountered some server error. We have been notified and will fix it soon.
A 400 is returned for a bad request, a 401 when the API key or bearer token is missing or invalid, a 403 for an unpaid account or insufficient role permissions, and a 500 for an internal server error. The asset_ID path parameter must identify the asset receiving the subtitles; use ISO 639-1 codes for language_codes when supplied.