Skip to main content

Enrollments

An enrollment represents a student’s registration in a course. It tracks when the student enrolled, their completion status, and their final grade. Enrollments are optional for certificate issuance but provide full academic traceability when included.

The enrollment object

{
  "uuid": "g7h8i9j0-k1l2-3456-mnop-567890123456",
  "completion_status": "completed",
  "grade": 8.75,
  "enrolled_at": "2024-02-01T00:00:00.000000Z",
  "completed_at": "2027-12-20T00:00:00.000000Z",
  "student": {
    "uuid": "f6a7b8c9-d0e1-2345-fghi-456789012345",
    "name": "Maria Fernanda Silva"
  },
  "course": {
    "uuid": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "name": "Bachelor of Computer Science"
  },
  "cohort": {
    "uuid": "e5f6a7b8-c9d0-1234-efgh-345678901234",
    "code": "BCS-2024-EVE"
  }
}
FieldTypeDescription
uuidstringUnique identifier
completion_statusenumenrolled, completed, dropped
gradedecimalFinal grade (0–10, 2 decimal places), nullable
enrolled_atdatetimeEnrollment date
completed_atdatetimeCompletion/graduation date, nullable
studentobjectThe enrolled student
courseobjectThe course
cohortobject|nullThe cohort, if applicable

List enrollments

GET /enrollments
# List all completed enrollments for a course
curl "https://api.dokstamp.eu/enrollments?where[completion_status]=completed&where[course_uuid]=c3d4e5f6-a7b8-9012-cdef-123456789012" \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Accept: application/json" \
  -H "X-Tenant: {TENANT}"

Create an enrollment

POST /enrollments
ParameterTypeRequiredDescription
student_uuidstringYesStudent UUID
course_uuidstringYesCourse UUID
enrolled_atdateYesEnrollment date (YYYY-MM-DD)
cohort_uuidstringNoCohort UUID
completion_statusenumNoenrolled (default), completed, dropped
gradedecimalNoFinal grade (min: 0)
completed_atdateNoCompletion date
curl -X POST https://api.dokstamp.eu/enrollments \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "X-Tenant: {TENANT}" \
  -d '{
    "student_uuid": "f6a7b8c9-d0e1-2345-fghi-456789012345",
    "course_uuid": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "cohort_uuid": "e5f6a7b8-c9d0-1234-efgh-345678901234",
    "enrolled_at": "2024-02-01",
    "completion_status": "completed",
    "grade": 8.75,
    "completed_at": "2027-12-20"
  }'

Get, update, delete

GET    /enrollments/{uuid}
PATCH  /enrollments/{uuid}
PUT    /enrollments/{uuid}
DELETE /enrollments/{uuid}
DELETE /enrollments/batch/destroy
The enrollment_uuid is an optional field on POST /certificates. Including it links the certificate to the specific enrollment record, enabling full traceability from enrollment to credential issuance.