Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Enroll user in class

Resource URL

URL: enrollment/enrollUserInClass


Parameters

string username
required

Username

string password
required

Password

int classId
required

Unique course class identifier

int userId
optional

Unique identifier of an user being enrolled

string userExternalId
optional

Unique external identifier of a user being enrolled. Either userId or userExternalId must be filled.

string comment
optional

Enrollment comment

int enrolledById
optional

Unique identifier of a user that will be used as enroller.

string enrolledByExternalId
optional

Unique external identifier of a user that will be used as enroller. Only one of parameters (enrolledById or enrolledByExternalId) cane be filled. If both enrolledById and enrolledByExternalId are empty, user whose credentials were used to authenticate will be considered enroller.

string poNumber
optional

Purchase order number

string invoiceComment
optional

Invoice comment


Return value

enrollmentStatus

Status of newly created enrollment. Possible values are:

  • FOR_APPROVAL
  • ON_WAITING_LIST
  • APPROVED

enrollmentReferenceId

Unique identifier of newly created enrollment. enrollmentReferenceId is used in other functionalities.


Example request

URL

https://www.trainingportal.no/mintra/rest/enrollment/enrollUserInClass

POST DATA

classId=1234&username=username&password=secret&userId=5678

{
"enrollmentStatus": "APPROVED",
"enrollmentReferenceId": "73e0a2b9-979f-4745-a840-93c5935b89e1"
}