Headless LMS

Reorder modules

POST
/api/courses/{courseId}/modules/reorder

Path Parameters

courseId*string

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/string/modules/reorder" \  -H "Content-Type: application/json" \  -d '{    "orderedIds": [      "string"    ]  }'
[  {    "id": "string",    "courseId": "string",    "title": "string",    "seq": -9007199254740991,    "activities": [      {        "id": "string",        "moduleId": "string",        "seq": -9007199254740991,        "settings": null,        "assetIds": [          "string"        ]      }    ]  }]