CourseLit logoCourseLit Docs
Api reference

Move a lesson to another section

POST
/api/products/{productId}/lessons/{lessonId}/move

Authorization

ApiKeyAuth
x-api-key<token>

API key created in CourseLit dashboard settings. The legacy apikey request-body field is still accepted but deprecated.

In: header

Path Parameters

productId*string
lessonId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://school.courselit.app/api/products/string/lessons/string/move" \  -H "Content-Type: application/json" \  -d '{    "destinationSectionId": "string",    "destinationIndex": 0  }'
{
  "ok": true
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}