CourseLit logoCourseLit Docs
Api reference

Reorder product sections

POST
/api/products/{productId}/sections/reorder

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

sectionIds*array<string>

Response Body

application/json

application/json

curl -X POST "https://school.courselit.app/api/products/string/sections/reorder" \  -H "Content-Type: application/json" \  -d '{    "sectionIds": [      "string"    ]  }'
{
  "ok": true
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}