GET /reports/scorm/:activityId/chart-data

GET /reports/scorm/:activityId/chart-data

GET /api/reports/scorm/[activityId]/chart-data - Get chart data for SCORM activity (stub for future implementation) Verify authentication with Clerk Get user's profile to determine role and tenant Verify user has access (instructor or admin) Verify the activity exists and is SCORM type Role-based access: instructors can only see their own courses Parse query parameter for chart type Stub implementation - return empty data structure for now Future implementation will aggregate data based on chartType: - completion-trend: Daily completion counts over time - score-distribution: Histogram of score ranges - time-spent: Box plot data for time distribution

Endpoint

GET /reports/scorm/:activityId/chart-data

Authentication

This endpoint requires authentication. Include your authentication token in the request headers.

Path Parameters

ParameterTypeDescription
activityIdstringPath parameter

Query Parameters

ParameterTypeDescription
typestringQuery parameter

Error Responses

Status CodeError CodeDescription
401HTTP_401Unauthorized
404HTTP_404Not Found
403HTTP_403Forbidden
404HTTP_404Not Found
400HTTP_400Bad Request
403HTTP_403Forbidden
500HTTP_500Internal Server Error

Example Request

curl -X GET "https://api.allurelms.com/reports/scorm/activityId-value/chart-data" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"