Headless LMS

Create a course

POST
/api/courses

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/courses" \  -H "Content-Type: application/json" \  -d '{    "title": "string"  }'
{  "id": "string",  "title": "string",  "slug": "string",  "description": "string",  "status": "draft",  "category": "string",  "moduleCount": -9007199254740991,  "activityCount": -9007199254740991,  "enrolledCount": -9007199254740991,  "updatedAt": "string",  "createdAt": "string"}