Get a user's course bookings
Resource URL
URL: user/coursebookings
Parameters
string username | Username |
string password | Password |
string userId | Trainingportal internal ID of the user |
string userExternalId optional | External ID of the user. Either userId or userExternalId must be filled |
string language | Language, available values are: |
Return value
Method returns collection of enrollments. Each element contains following fields:
enrollmentReferenceId | Unique identifier of an enrollment. |
courseName | Course name |
courseClassName | Course class name |
courseId | Unique identifier of course |
courseClassId | Unique identifier of course class |
location | Name of the location |
address | Contains location where course class is going to take place. Can be empty when course class has multiple sessions in different locations. Consists of:
|
startDate | Course class start date. Format: yyyy-MM-dd |
startTime | Course class start time. Format hh:mm |
endDate | Course class end date. Format: yyyy-MM-dd |
endTime | Course class end time. Format hh:mm |
Example request
URL | https://www.trainingportal.no/mintra/rest/user/coursebookings |
POST DATA | userExternalId=a001&username=username&password=secret |
{
"coursebookings": [
{
"address": {
"location": "Kobbervikdalen 61",
"city": "Drammen",
"zipCode": "3036",
"contry": ""
},
"startTime": "09:00",
"endTime": "16:00",
"courseId": 6547,
"courseClassId": 12345,
"startDate": "2014-05-05",
"courseClassName": "Kis kompetanse AS",
"courseName": "Anleggasmaskin - Modul 1.1, 2.1 og 3.1",
"endDate": "2014-05-09",
"enrollmentReferenceId": "fwere92f-b3e1-412a-a452-fe6e2b51afa9",
"courseExternalId": "",
"location": "Bergen"
},
]
}