---
title: "Create a chunked upload session replacing the source of an existing media."
method: POST
path: "/2/vod/media/{media}/upload/session"
tags: ["V3 > Upload"]
---

# Create a chunked upload session replacing the source of an existing media.

`POST /2/vod/media/{media}/upload/session`

Creates the upload bound to the given media, then opens a chunked upload
session whose identifier must be sent with each chunk and the finalize
call. The session metadata is cached for 6 hours.

## Path parameters

- `media` string, required

## Request body

- object
  - `file` string — <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`
  - `from` number
  - `duration` number

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 1527df96Uploadsession
    - `session` string, required — UUID of the upload, used as session identifier
    - `chunk_size` integer, required — Chunk size in bytes, negotiated by the server
    - `chunk_count` integer, required — Total number of expected chunks

## Changes

- **2026-10-08** `970770257c30` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/changes/2/vod/media/:media/upload/session/post.md)

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/revisions/970770257c30?raw)
