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
| Parameter | Type | Description |
|---|
activityId | string | Path parameter |
Query Parameters
| Parameter | Type | Description |
|---|
type | string | Query parameter |
Error Responses
| Status Code | Error Code | Description |
|---|
| 401 | HTTP_401 | Unauthorized |
| 404 | HTTP_404 | Not Found |
| 403 | HTTP_403 | Forbidden |
| 404 | HTTP_404 | Not Found |
| 400 | HTTP_400 | Bad Request |
| 403 | HTTP_403 | Forbidden |
| 500 | HTTP_500 | Internal 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"