with an enrollment created today and one outside the range
GET /api/v1/course_progresses/users_in_range
Parameters
| Name |
Description |
|
course_id
|
Id of course for course progresses
|
|
min_days_ago
|
minimum age of enrollment in days
|
|
max_days_ago
|
maximum age of enrollment in days
|
Request
Headers
Route
GET /api/v1/course_progresses/users_in_range?course_id=229&min_days_ago=0&max_days_ago=2
Query Parameters
course_id: 229
min_days_ago: 0
max_days_ago: 2
cURL
curl "http://localhost:3000/api/v1/course_progresses/users_in_range?course_id=229&min_days_ago=0&max_days_ago=2" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: z5r6xS6UvF-gh8qeR45hzCDS8mKqUi8xqQ" \
-H "X-Api-Email: user-468@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"count": 1
}