Returns a paginated list of active user assignments to the given course, including metadata such as stage completion status, due date, and assignment info. Supports filtering and sorting.
Route Parameters
-
wikiid —
Required —
positive integer
-
The ID of the course to retrieve user assignments for.
Query Parameters
-
page —
Optional —
positive integer
-
Specifies the page number for paginated results. Starts at 1. Defaults to 1.
-
limit —
Optional —
positive integer
-
Maximum number of user assignments to return per page. Defaults to 10.
-
direction —
Optional —
enum
-
The sort direction. Must be either "ASC" or "DESC". Defaults to "ASC".
-
orderby —
Optional —
enum
-
The field used for sorting the user list. Allowed values: "username", "status", "stage_progress", "assignment_date", "due_date", "course_completion_date", "recurrence_date". Defaults to "username".
-
status —
Optional —
enum|string (comma-separated)
-
Filter user assignments by course status. Options: "not_started", "in_progress", "completed". Supports multiple values (e.g. ?status=not_started,completed).
-
search —
Optional —
string
-
A search term to filter user assignments by username.
Response
{
"response": [
{
"total_stages": 2,
"username": "Jane Doe",
"user_avatar": "https:\/\/www.example.com\/static\/images\/avatars\/User\/Dozuki\/single-avatar-2-01.140x105",
"completed_stages": 1,
"status": "In Progress",
"course_completion_date": 1740772150,
"assignment_date": 1740512956,
"recurrent_date": 1740772156,
"due_date": 1743857544
},
{
"total_stages": 2,
"username": "Steve Hor",
"user_avatar": "https:\/\/www.example.com\/static\/images\/avatars\/User\/Dozuki\/single-avatar-2-03.140x105",
"completed_stages": 2,
"status": "Completed",
"course_completion_date": 1740772150,
"assignment_date": 1740512956,
"recurrent_date": 1740772156,
"due_date": 1743857544
},
{
"total_stages": 2,
"username": "Sterling Hirsh",
"user_avatar": "https:\/\/www.dozuki.dev\/static\/images\/avatars\/User\/Dozuki\/single-avatar-2-08.thumbnail",
"completed_stages": 0,
"status": "Not Started",
"course_completion_date": null,
"assignment_date": 1741265544,
"recurrent_date": 1741524744,
"due_date": 1743857544
}
],
"hasMore": false,
"totalAssignees": 1
}