Kurse
Create module
/ v1 / courses / {course_id} / modules Adds a module, a group of lessons, to a course.
- Without
parent_module_idit is a main module. With it, it is a submodule. - The module is a draft unless
draftisfalse. A draft module hides all items in it.
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
-
course_idinteger erforderlichThe id from list_courses or create_course.
min.
1Beispiel:202
Body application/json
-
parent_module_idinteger kann null seinMake it a submodule of this module.
min.
1 -
titlestring erforderlichTitle that buyers see.
min. Länge
1max. Länge255 -
positionintegerPlace among the items of the same module: 1 = first. Default: last.
min.
1 -
draftbooleantrue = buyers do not see it. New items are drafts unless draft is false. draft true removes the release rule.
-
releaseobject kann null seinWhen buyers get the item. null = at once (also left out on create; left out on update = no change). One rule: days or hours after purchase, a date, or after another lesson is done (only if the course tracks progress). Days and dates unlock at drip_release_hour of get_course_outline. Needs draft false. The answers add lesson_title and enforced to after_lesson (read only; enforced false = the course does not track progress, so the rule has no effect).
5 Felder anzeigen Felder ausblenden
-
typestring erforderlichMögliche Werte:
days_after_purchasehours_after_purchasedateafter_lesson -
daysintegermin.
1max.9999 -
hoursintegermin.
1max.9999 -
datestringLike 2026-12-01.
Muster
^[0-9]{4}-[0-9]{2}-[0-9]{2}$ -
lesson_idintegerafter_lesson: a lesson of the same course.
min.
1
-
-
cover_image_urlstring kann null seinModule image: the image_url from finish_image, or a public image URL that Tentary copies. Buyers see it only with course layout cards, on the card of a main module (16:9). null removes it.
max. Länge
2048
Antwort
Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.
-
idintegerThe ID.
-
course_idintegerThe course ID.
-
parent_module_idinteger kann null seinnull = a main module.
-
titlestringThe title.
-
cover_image_urlstring kann null seinModule image. Shows only with course layout cards.
-
positionintegerPlace in its module or among the main items, 1 = first.
-
draftbooleantrue = buyers see nothing of the module and the items in it.
-
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.
-
-
admin_urlstring<uri>The page in the Tentary app.