v1

latestOpenAPI 3.0.0AGPLv3.02026-07-14186117194.3 KB
Video
Video Upload

Send chunk for the resumable upload of a video

Uses a resumable protocol to continue, pause or resume the upload of a video

put/api/v1/videos/upload-resumable

Query parameters

upload_idstring required

Created session id to proceed with. If you didn't send chunks in the last hour, it is not valid anymore and you need to initialize a new upload.

Headers

Content-Rangestring required
Example:bytes 0-262143/2469036

Specifies the bytes in the file that the request is uploading.

For example, a value of bytes 0-262143/1000000 shows that the request is sending the first 262144 bytes (256 x 1024) in a 2,469,036 byte file.

Content-Lengthnumber required
Example:262144

Size of the chunk that the request is sending.

Remember that larger chunks are more efficient. PeerTube's web client uses chunks varying from 1048576 bytes (~1MB) and increases or reduces size depending on connection health.

Response

last chunk received