List lessons
/products/{product_id}/lessonsReturns the lessons of a product, using cursor pagination. Lesson bodies are not included; use the content endpoint to retrieve them.
The collection can be filtered by module, status, format, and name. Set unassigned to true to return only lessons that are not in a module. Trashed lessons are excluded by default; set deleted to true to return only lessons in the trash.
Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.
In: header
Path Parameters
Query Parameters
1 <= value <= 200Value in
- "id"
- "-id"
Value in
- "published"
- "draft"
Value in
- "standard"
- "quiz"
- "live_youtube"
- "live_vimeo"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/products/string/lessons"{ "data": [ { "connection": { "connected": true, "source_lesson_id": "string", "source_product_id": "string" }, "created_at": "2019-08-24T14:15:22Z", "deleted": true, "exam_id": "string", "format": "standard", "id": "string", "image": "string", "module_id": "string", "name": "string", "object": "lesson", "pinned": true, "position": 0, "product_id": "string", "published_at": "2019-08-24T14:15:22Z", "revision": "string", "settings": null, "status": "published", "summary": "string", "updated_at": "2019-08-24T14:15:22Z" } ], "page": { "limit": 1, "next_cursor": "string", "prev_cursor": "string" }}Lessons
Lessons in API v3: list lessons, create a lesson, retrieve a lesson, update a lesson, delete a lesson, list lesson attachments, add or update an attachment, remove an attachment, retrieve a lesson connection, connect a lesson, disconnect a lesson, retrieve lesson content, replace lesson content, duplicate a lesson, list lesson taxonomy terms, replace lesson taxonomy terms.
Create a lesson POST
Creates a lesson in the product, optionally inside a module. New lessons are created as drafts. The `Location` header of the response contains the URL of the new lesson. Lessons cannot be created in replicated products; such requests return `replica_readonly`.