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