Retrieve lesson content
/products/{product_id}/lessons/{lesson_id}/contentReturns the lesson body in Editor.js block format, along with its video and embed settings. For connected lessons, the content comes from the source lesson and inherited is true.
The response includes an ETag representing the current revision of the lesson. Send this value in the If-Match header when changing the lesson to avoid overwriting a newer version.
Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/products/string/lessons/string/content"{ "data": { "body": { "blocks": [ {} ], "inherited": true }, "embed": { "url": "string" }, "format": "standard", "lesson_id": "string", "live": { "url": "string" }, "object": "lesson_content", "revision": "string", "video": { "provider": "string", "url": "string" } }}Disconnect a lesson DELETE
Disconnects the lesson from its source lesson, so it no longer mirrors that lesson's content. If the lesson is not connected, the request fails with `state_conflict`. Replicated lessons are read-only, and requests to change them return `replica_readonly`.
Replace lesson content PUT
Replaces the lesson body and, when `video` is included, the lesson video. The `inherited` field returned by the retrieve operation is accepted and ignored, so retrieved content can be sent back as is. `raw` blocks are not accepted, embed blocks must use a recognized provider, and quiz lessons do not accept a video. The request body must not exceed 1 MiB. The content of a connected lesson belongs to its source lesson and cannot be changed; such requests fail with `state_conflict`. Replicated lessons are read-only, and requests to change them return `replica_readonly`. Send the lesson's current `ETag` in the `If-Match` header to avoid overwriting a newer version.