Skip to main content
Scope: assignments:read. An enrollment is one learner in one assignment. Its status, score and progress are the same values that the assignment’s page shows in the Solidroad app. The list sorts on updatedAt, newest first. Send order=asc for oldest first. To read the enrollments in every assignment on one list, use List enrollments.

Path parameters

Query parameters

Read Lists for how the parameters work, and Filtering for the filter syntax.

Filter fields

These are the only fields that you can filter on. Read Filtering for the syntax and the operators that each kind takes. A filter on completedAt reads the value in the enrollment object. That value can be empty for a learner who completed some time ago, and it can follow status by a few minutes. Read Times. So completedAt == null can match a learner who has finished. A filter on status reads the status in the enrollment object, as it is when you send the request. For example, status == "not_started" lists every learner who has not started the assignment. A filter on groupId reads the learner’s group membership, as it is when you send the request:
  • groupId == "grp_…" matches a learner who is a direct member of the group. It does not match a member of a subgroup. To include a subgroup, add its ID with in.
  • groupId in ["grp_…", "grp_…"] matches a learner who is a direct member of one or more of the groups.
  • groupId != "grp_…" matches a learner who is not a direct member of the group. This includes a learner who is in no group.
A group ID that is not in your workspace matches no learner. Read the group IDs from List groups. You can filter on status and groupId on this list only. List enrollments does not take them. To read the attempts behind an enrollment, filter List attempts on enrollmentId.

Request

To get one learner’s enrollment, filter on learnerId:
To list the learners in one group who have not started the assignment, filter on status and groupId:
Each row has a learnerId. To get the learner’s name and email, read Get a person with that ID.

Response

Enrollment object

Status

An assignment has a passing score when its passingScore is more than 0. Handle status values that you do not know: we can add values in version 2.

Learner

learnerId is a person ID that you can read with Get a person. If the learner left your workspace, that endpoint returns 404, so keep the details you already hold.

Score

averageScore is left out until every scored simulation in the assignment has a score for the learner. A learner with status completed can have an averageScore.

Items

An item is a simulation in the assignment, or a required system simulation. submittedItems counts the simulations that the learner has attempted and the required system simulations that they have completed. When submittedItems equals totalItems, the learner has submitted everything. The status tells you whether that passed.

Times

updatedAt is when the status, score or submitted items last changed. It is not the time when Solidroad last wrote the record. Use it for an incremental sync. completedAt is when the learner reached their current passed or completed status. It is accurate to within a few minutes. A learner with status failed has no completedAt. Another attempt does not change completedAt while the learner stays complete. If the learner stops being complete, for example after a score correction or a change to the assignment, the field is left out. It comes back with a new time when they complete again. completedAt can be left out for a learner who completed some time ago, and for a few minutes after the status changes. updatedAt moves when it arrives, so an incremental sync picks it up.

Errors

Read Errors for every code.