Update Lesson
PUT/courses/products/:productId/lessons/:lessonId
Update a lesson. Requires a Location token with courses.write. Accepts the same lesson columns as create. All fields optional. Omit categoryId to keep the current category.
Request
Version stringrequired
API Version
Available options
v3productId string<uuid>required
Product id
Possible values: non-empty
lessonId string<uuid>required
Lesson id
Possible values: non-empty
locationId stringrequired
Location id or sub-account id is required.
Possible values: non-empty
- application/json
- Body
- Example (auto)
Bodyrequired
descriptionstringnullable
visibilitystring
Available options
draftpublishedlockedposterImagestringnullable
sequenceNonumber
commentStatusstring
Available options
visiblehiddenlockedcontentIdstringnullable
contentTypestring
Available options
videoassignmentquizaudiofunnelcommentPermissionstring
Available options
hiddenenabledlockedlockedByPoststringnullable
lockedByCategorystringnullable
certificateTemplateIdstringnullable
metaDataobjectnullable
titlestring
Lesson title
categoryIdstring
Category id
{
"description": "string",
"visibility": "draft",
"posterImage": "string",
"sequenceNo": 1,
"commentStatus": "visible",
"contentId": "string",
"contentType": "video",
"commentPermission": "hidden",
"lockedByPost": "string",
"lockedByCategory": "string",
"certificateTemplateId": "string",
"metaData": {},
"title": "Lesson 1",
"categoryId": "b2c3d4e5-f678-4901-bcde-f12345678901"
}
Success
- application/json
- Schema
- Example (auto)
Schema
idstringrequired
Lesson id
titlestringrequired
descriptionstringnullablerequired
categoryIdstringrequired
visibilitystringrequired
Available options
draftpublishedlockedposterImagestringnullablerequired
sequenceNonumberrequired
commentStatusstringrequired
Available options
visiblehiddenlockedcontentIdstringnullablerequired
contentTypestringrequired
Available options
videoassignmentquizaudiofunnelcommentPermissionstringrequired
Available options
hiddenenabledlockedlockedByPoststringnullablerequired
lockedByCategorystringnullablerequired
certificateTemplateIdstringnullablerequired
metaDataobjectnullablerequired
createdAtstringrequired
updatedAtstringrequired
{
"id": "c3d4e5f6-7890-4123-cdef-123456789012",
"title": "Lesson 1",
"description": "string",
"categoryId": "string",
"visibility": "draft",
"posterImage": "string",
"sequenceNo": 0,
"commentStatus": "visible",
"contentId": "string",
"contentType": "video",
"commentPermission": "hidden",
"lockedByPost": "string",
"lockedByCategory": "string",
"certificateTemplateId": "string",
"metaData": {},
"createdAt": "string",
"updatedAt": "string"
}