Flourish QMS

API reference / Enrolments

Create or update an enrolment by your own foreign id

PUT/v1/enrolments/by-source-id/{sourceId}

Needs a bearer access token with the enrolments.write scope. How authentication works

Creates the enrolment if one doesn't yet exist for this source_id (same request body as POST /v1/enrolments), or updates the existing one if it does — lets your system track its own record id instead of having to store Florisage's uuid first. Pass status: "completed" to mark it complete: this fires enrolment.completed, and certificate.issued too if the course awards one. Marking complete only ever moves forward — it can't un-complete an already-finished enrolment.

Path parameters

  • sourceIdstringpathrequired

    Your own id for this enrolment (the source_id you chose).

Request bodyapplication/json

  • emailstring
  • first_namestring
  • last_namestring
  • course_idstring · uuid
  • statusstring

    Allowed values:completed

Responses

  • 200Enrolment updated
  • 201Enrolment created