Skip to main content

CreateClassEnrollment

POST /tp-api/classes/:classId/enrollments

Create a new enrollment for a class.

Path Parameters
  • classId string required

    Class ID

Header Parameters
  • training-provider-id string required
Request Body required
  • employerId string required

    Employer ID

  • newLearner object

    New learner information. Note: One of learnerId and newLearner is required. If both are provided, newLearner will be ignored.

  • firstname string required

    Learner firstname

  • lastname string required

    Learner lastname

  • email email

    Learner email

  • phone string

    Possible values: Value must match regular expression ^[1-9][0-9]{0,3} [0-9]{8,11}(x[0-9]+)?$

    Learner phone number

  • learnerId string

    Training provider learner identifier. Note: One of learnerId and newLearner is required. If both are provided, newLearner will be ignored.

  • enrolledAt date-time

    The enrollment timestamp, should be in ISO8601 format. If not provided, the system will use the earlier of the current date and time or the class start date and time.

Responses

Default Response

Schema
  • id string required
Loading...