Disconnect a lesson
/products/{product_id}/lessons/{lesson_id}/connectionDisconnects 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.
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 DELETE "https://example.com/products/string/lessons/string/connection"Connect a lesson PUT
Connects the lesson to the source lesson given by `source_lesson_id`. A connected lesson mirrors the content of its source lesson and takes on its format, name, summary, and thumbnail. Requires the `lessons.connect` permission on the lesson being connected. The source lesson must be readable with the current credentials; otherwise the API returns `404 Not Found`. The source lesson must have the same format, must not be the lesson itself, and must not be connected to another lesson. Send the lesson's current `ETag` in the `If-Match` header to avoid overwriting a newer version. Replicated lessons are read-only, and requests to change them return `replica_readonly`.
Retrieve lesson content GET
Returns 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.