Kurse
Lesson
/ v1 / lessons / {lesson_id} One lesson of a course: its content blocks, its draft and free preview flags and its release rule.
Content blocks can be texts, images, videos, audio, files (with file_id and name, but no download links), video links and buttons. The fields have the same names and formats as in PATCH /v1/lessons/{lesson_id}.
Autorisierung
-
Authorizationstring Header erforderlichBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung
Pfad-Parameter
-
lesson_idinteger erforderlichThe id from get_course_outline.
min.
1Beispiel:302
Antwort
Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.
-
idintegerThe ID.
-
course_idintegerThe course of the lesson.
-
course_namestringThe course name.
-
module_idinteger kann null seinThe module of the lesson.
-
titlestringThe title.
-
positionintegerPlace in its module, 1 = first.
-
draftbooleantrue = buyers do not see it.
-
free_previewbooleantrue = everyone can watch it as a free preview.
-
releaseobject kann null seinWhen buyers get the item. null = at once.
Eine dieser Varianten:
type: days_after_purchase· 2 Felder-
typestringThe rule type.
Mögliche Werte:
days_after_purchase -
daysintegerDays after the purchase.
type: hours_after_purchase· 2 Felder-
typestringThe rule type.
Mögliche Werte:
hours_after_purchase -
hoursintegerHours after the purchase.
type: date· 2 Felder-
typestringThe rule type.
Mögliche Werte:
date -
datestring<date>Like 2026-01-31.
type: after_lesson· 4 Felder-
typestringThe rule type.
Mögliche Werte:
after_lesson -
lesson_idintegerThe lesson that the buyer must finish first.
-
lesson_titlestring kann null seinThe title of that lesson.
-
enforcedbooleanfalse = the course does not track progress, so the rule has no effect.
-
-
contentarray of objectContent blocks, in order.
Eine dieser Varianten:
type: text· 2 FelderFormatted text.
-
typestringThe block type.
Mögliche Werte:
text -
htmlstringThe text as HTML.
type: image, video· 5 FelderAn uploaded image or video.
-
typestringThe block type.
Mögliche Werte:
imagevideo -
file_idintegerThe file ID (from upload_file).
-
namestringThe name.
-
file_typestringFile extension, like pdf.
-
size_bytesinteger kann null seinFile size in bytes.
type: audio, file· 6 FelderAn audio player or a download.
-
typestringThe block type.
Mögliche Werte:
audiofile -
file_idintegerThe file ID (from upload_file).
-
namestringThe name.
-
descriptionstringfile: text under the download. audio: title above the player.
-
file_typestringFile extension, like pdf.
-
size_bytesinteger kann null seinFile size in bytes.
type: video_embed· 2 Felder-
typestringThe block type.
Mögliche Werte:
video_embed -
urlstringYouTube, Vimeo or Loom link.
type: button· 3 FelderA link button.
-
typestringThe block type.
Mögliche Werte:
button -
labelstringThe text that buyers see.
-
urlstringThe link.
-
-
admin_urlstring<uri>The page in the Tentary app.