POST /modules/:moduleId/activities/reorder
POST /modules/:moduleId/activities/reorder
POST /api/modules/[moduleId]/activities/reorder Verify user is authenticated with Clerk Parse and validate request body Get user's profile for tenant_id Verify the module exists and user has access Check if user is the instructor or admin Update order_index for each activity Ensure activity belongs to this module Check for errors
Endpoint
POST /modules/:moduleId/activities/reorder
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
moduleId | string | Path parameter |
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 400 | HTTP_400 | Bad Request |
| 404 | HTTP_404 | Not Found |
| 404 | HTTP_404 | Not Found |
| 403 | HTTP_403 | Forbidden |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X POST "https://api.allurelms.com/modules/moduleId-value/activities/reorder" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'