Complete Lesson
Marks a specific lesson as completed for the authenticated customer. Progress is tracked per customer per course. Once all lessons are completed, the course is considered finished.
Authentication
Requires a valid customer bearer token.
Path Parameters
Numeric identifier of the course.
The UUID (UniqueId) of the lesson to mark as complete. Obtained from GET /api/public/courses/v2/{courseId}/lessons/{lessonId}.
Request Body
No request body required.
Response
Returns a 200 OK on success.
Examples
Mark a lesson as complete
POST /api/public/courses/42/lessons/a1b2c3d4-e5f6-7890-abcd-ef1234567890/complete
Authorization: Bearer {token}
TypeScript Integration
import endpoints from '@/api/endpoints'
await httpClient.post(endpoints.courses.completeLesson(42, 'a1b2c3d4-e5f6-7890-abcd-ef1234567890').url)