Skip to main content
POST
Create video upload

Авторизації

Authorization
string
header
обов'язково

API token from the Zenedu dashboard

Параметри шляху

bot
integer
обов'язково

Bot ID

product
integer
обов'язково

Product ID

lesson
integer
обов'язково

Lesson ID

Тіло

application/json
title
string
обов'язково

Video title

Maximum string length: 255
file_size
integer
обов'язково

File size in bytes; checked against the storage limit

Необхідний діапазон: x >= 1

Відповідь

Upload created

video_id
integer
status
string
Приклад:

"uploading"

upload
object

TUS upload credentials for the video host