Skip to content

Create Lessons

Endpoint used to create lessons within a course in Toolzz LMS.

Terminal window
curl --request POST \
--url 'https://kong.api.toolzz.com.br/api/content/course/{course_id}/create_class' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "<string>",
"description": "<string>",
"duration": 60,
"tag": [],
"progress_criteria": [],
"show_tilte": "true",
"enable_lesson_view": "0",
"scheduled_date": "2025-01-01"
}'
{
"data": {
"id": "<string>",
"titulo": "<string>",
"curso_id": "<string>"
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
course_idstringID of the course to which the lesson belongs.Yes
ParameterTypeDescriptionRequired
titlestringLesson title. Maximum of 150 characters.Yes
descriptionstringLesson description. Maximum of 255 characters.Yes
durationintTotal lesson duration. Maximum of 4 characters.No
tagarrayTags related to the course, comma-separated. Maximum of 150 characters per tag.No
progress_criteriastring[]Optional list of lesson IDs that must be completed to unlock the current lesson. The indicated lessons must belong to the same course specified by course_id. Invalid IDs will be ignored and only valid IDs will be registered.No
show_tiltestringDefines if the lesson title will be displayed. true: Show title. false: Hide title.No
enable_lesson_viewstringDefines if the lesson can be accessed by guest users. 0: No. 1: Yes.No
scheduled_datedateDate for future release of the lesson.No

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.