/video/v1/uploads (POST)
POST
/video/v1/uploads
const url = 'https://example.com/video/v1/uploads';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"cors_origin":"example","timeout":3600,"new_asset_settings":{"test":true,"mp4_support":"none","normalize_audio":true,"master_access":"none","max_resolution_tier":"1080p","inputs":[{"url":"example","overlay_settings":{"width":"example","height":"example","horizontal_align":"left","vertical_align":"top","horizontal_margin":"example","vertical_margin":"example","opacity":"example"}}],"static_renditions":[{"resolution":"highest","passthrough":"example"}],"playback_policies":"public","passthrough":"example","meta":{"title":"example","creator_id":"example","external_id":"example"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/video/v1/uploads \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "cors_origin": "example", "timeout": 3600, "new_asset_settings": { "test": true, "mp4_support": "none", "normalize_audio": true, "master_access": "none", "max_resolution_tier": "1080p", "inputs": [ { "url": "example", "overlay_settings": { "width": "example", "height": "example", "horizontal_align": "left", "vertical_align": "top", "horizontal_margin": "example", "vertical_margin": "example", "opacity": "example" } } ], "static_renditions": [ { "resolution": "highest", "passthrough": "example" } ], "playback_policies": "public", "passthrough": "example", "meta": { "title": "example", "creator_id": "example", "external_id": "example" } } }'Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
cors_origin
required
string
timeout
integer
new_asset_settings
object
test
boolean
mp4_support
string
normalize_audio
boolean
master_access
string
max_resolution_tier
string
inputs
Array
One of:
object
url
required
string
overlay_settings
required
object
width
string
height
string
horizontal_align
string
vertical_align
string
horizontal_margin
string
vertical_margin
string
opacity
string
object
language_code
required
string
name
string
closed_captions
boolean
passthrough
string
url
required
string
type
required
string
text_type
required
string
object
language_code
string
name
string
static_renditions
Array<object>
object
resolution
required
string
passthrough
string
playback_policies
Any of:
string
Array<string>
passthrough
string
meta
object
title
string
creator_id
string
external_id
string
Responses
Sección titulada «Responses»Default Response