V3 > Upload

Replace the source of an existing media in a single request.

Creates an upload bound to the given media, then imports the media content from the provided source: a multipart file or a remote URL. Fails with an upload error when the source cannot be created or when none of the expected sources is provided.

post/2/vod/media/{media}/upload

Path parameters

mediastring required

Request body

filestring

<br/>The file under validation must have a MIME type corresponding to one of the following extensions:audio, 3gpp, 3gpp-encrypted, 3gpp2, aac, ac3, adpcm, amr, amr-encrypted, amr-wb, amr-wb-encrypted, annodex, basic, flac, imelody, m3u, m4a, midi, mobile-xmf, mp2, mp3, mp4, mpeg, mpegurl, ogg, prs.sid, s3m, scpls, silk, tta, usac, vnd.audible, vnd.audible.aax, vnd.dece.audio, vnd.digital-winds, vnd.dra, vnd.dts, vnd.dts.hd, vnd.lucent.voice, vnd.m-realaudio, vnd.ms-playready.media.pya, vnd.nuera.ecelp4800, vnd.nuera.ecelp7470, vnd.nuera.ecelp9600, vnd.rip, vnd.rn-realaudio, vnd.wave, vorbis, wav, wave, webm, wma, x-aac, x-aifc, x-aiff, x-aiffc, x-amzxml, x-annodex, x-ape, x-caf, x-dts, x-dtshd, x-flac, x-gsm, x-hx-aac-adts, x-imelody, x-iriver-pla, x-it, x-m3u, x-m4a, x-m4b, x-m4r, x-matroska, x-midi, x-minipsf, x-mo3, x-mod, x-mp2, x-mp3, x-mp3-playlist, x-mpeg, x-mpegurl, x-mpg, x-ms-asx, x-ms-wax, x-ms-wma, x-ms-wmv, x-musepack, x-ogg, x-oggflac, x-opus, x-pn-audibleaudio, x-pn-realaudio, x-pn-realaudio-plugin, x-psf, x-psflib, x-realaudio, x-rn-3gpp-amr, x-rn-3gpp-amr-encrypted, x-rn-3gpp-amr-wb, x-rn-3gpp-amr-wb-encrypted, x-s3m, x-scpls, x-shorten, x-speex, x-stm, x-tta, x-voc, x-vorbis, x-wav, x-wavpack, x-wavpack-correction, x-xi, x-xm, x-xmf, xm, xmf, video, 3gp, avi, divx, dv, fli, flv, h261, h263, h264, iso.segment, jpeg, jpm, mj2, mp2t, mp4v-es, mpeg-system, msvideo, quicktime, vivo, vnd.dece.hd, vnd.dece.mobile, vnd.dece.pd, vnd.dece.sd, vnd.dece.video, vnd.divx, vnd.dvb.file, vnd.fvt, vnd.mpegurl, vnd.ms-playready.media.pyv, vnd.radgamettools.bink, vnd.radgamettools.smacker, vnd.rn-realvideo, vnd.uvvu.mp4, vnd.vivo, x-anim, x-avi, x-f4v, x-fli, x-flic, x-flv, x-javafx, x-m4v, x-matroska-3d, x-mjpeg, x-mng, x-mpeg-system, x-mpeg2, x-ms-asf, x-ms-asf-plugin, x-ms-vob, x-ms-wm, x-ms-wmx, x-ms-wvx, x-msvideo, x-nsv, x-ogm, x-real-video, x-sgi-movie, x-smv, x-theora

fromnumber
durationnumber

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success"
}

Changes

Changed in 1 of the 23 revisions of this API.1