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

ParameterTypeDescription
moduleIdstringPath parameter

Error Responses

Status CodeError CodeDescription
401HTTP_401Unauthorized
400HTTP_400Bad Request
404HTTP_404Not Found
404HTTP_404Not Found
403HTTP_403Forbidden
500HTTP_500Internal Server Error
500HTTP_500Internal 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 '{}'