Skip to main content
Version: v3New

Create Lesson

POST 

/courses/products/:productId/lessons

Create a lesson. Requires title and categoryId. Accepts lesson columns. locationId, userId, productId, originId are not accepted. Requires a Location token with courses.write.

Request​

Version stringrequired

API Version

Available optionsv3
productId string<uuid>required

Product id

Possible values: non-empty

locationId stringrequired

Location id or sub-account id is required.

Possible values: non-empty

application/json

Bodyrequired

    descriptionstringnullable
    visibilitystring
    Available optionsdraftpublishedlocked
    posterImagestringnullable
    sequenceNonumber
    commentStatusstring
    Available optionsvisiblehiddenlocked
    contentIdstringnullable
    contentTypestring
    Available optionsvideoassignmentquizaudiofunnel
    commentPermissionstring
    Available optionshiddenenabledlocked
    lockedByPoststringnullable
    lockedByCategorystringnullable
    certificateTemplateIdstringnullable
    metaDataobjectnullable
    titlestringrequired

    Lesson title

    categoryIdstringrequired

    Category id

application/json

Created

Schema
    idstringrequired

    Lesson id

    titlestringrequired
    descriptionstringnullablerequired
    categoryIdstringrequired
    visibilitystringrequired
    Available optionsdraftpublishedlocked
    posterImagestringnullablerequired
    sequenceNonumberrequired
    commentStatusstringrequired
    Available optionsvisiblehiddenlocked
    contentIdstringnullablerequired
    contentTypestringrequired
    Available optionsvideoassignmentquizaudiofunnel
    commentPermissionstringrequired
    Available optionshiddenenabledlocked
    lockedByPoststringnullablerequired
    lockedByCategorystringnullablerequired
    certificateTemplateIdstringnullablerequired
    metaDataobjectnullablerequired
    createdAtstringrequired
    updatedAtstringrequired