Update course class
Updates a course class for a course
Resource URL
URL: v1/courses/get/{externalCourseId}/courseClasses/update
Request Method
POST | GET |
Parameters
string username | Username |
string password | Password |
string externalCourseId path variable | Course provider's ID for the course |
string externalId | The course provider's ID for the course class (in their booking system) |
string location optional | Location for the course class |
int availableSeats | Number of available seats |
Date erollmentDeadline optional | Enrollment deadline |
Date cancellationDeadline optional | Cancellation deadline |
Date startDate optional | Start date |
Time startTime optional | Start time |
Date endDate optional | End date |
Time endTime optional | End time |
AddressDto address
| |
PriceDto price Price consists of:
|
|
boolean sendScheduleInfoToParticipants | If true the system will send calendar invitation information to the students on the class. |
Return value
Returns information on the updated course class
cancelled | True if the course class is cancelled | ||
courseExternalId | The course provider's ID for the course (in their booking system) | ||
externalId | The course provider's ID for the course class (in their booking system) | ||
location | Location for the course class | ||
availableSeats | Number of available seats | ||
enrollmentDeadline | Enrollment deadline | ||
cancellationDeadline | Cancellation deadline | ||
startDate | Start date | ||
startTime | Start time | ||
endDate | End date | ||
endTime | End time | ||
address Address consists of:
| |||
price Price consists of:
| |||
boolean sendScheduleInfoToParticipants | If the system should send calendar invitation information to the students on the class. |
Example request
URL | https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/courses/get/6/courseClasses/update |
POST DATA | username=username&password=secret&.... |
{ "cancelled" : false , "courseExternalId" : "6" , "externalId" : "1234" , "location" : "Oslo" , "availableSeats" :10, "enrollmentDeadline" : "2015-06-12" , "cancelationDeadline" : "2015-06-13" , "startDate" : "2015-06-20" , "startTime" : "00:00:00" , "endDate" : "2015-06-25" , "endTime" : "00:00:00" , "address" : { "addressLine1" : "Storgata 1" , "addressLine2" : "" , "city" : "Oslo" , "zipCode" : "12" , "country" : "Norway" }, "price" : { "amount" :5600.00, "currency" : "NOK" }, "sendScheduleInfoToParticipants" : true } |