ZWeb.API.Flat.EnrollmentsController (Portico/Z v0.1.0)

API endpoint for CRUD functions on ZSchemas.Flat.Enrollment data through Z.Flat

Link to this section Summary

Functions

POST /api/flat/enrollments

DELETE /api/flat/enrollments/:sis_enrollment_id

Link to this section Functions

Link to this function

create(conn, map)

POST /api/flat/enrollments

Create/update enrollments.

Expects an enrollments key, containing a JSON array where each element is a structure corresponding to ZSchemas.Flat.Enrollment.

Will update in the case that a sis_enrollment_id is sent, matching an existing Enrollment. Otherwise, will create a new enrollment.

Link to this function

delete(conn, map)

DELETE /api/flat/enrollments/:sis_enrollment_id

Destroy an enrollment, by sis_enrollment_id