Skip to main content

CreateE-LearningEnrollment

POST /tp-api/e-learning/:courseId/enrollments

Create a new enrollment for an e-learning.

Path Parameters
  • courseId string required

    Course 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 required

    The enrollment timestamp, should be in ISO8601 format.

Responses

Default Response

Schema
  • id string required
Loading...