Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Update course class

Updates a course class for a course

Resource URL

URL: v1/courses/get/{externalCourseId}/courseClasses/update

Request Method

POSTGET

Parameters

string username
required

Username

string password
required

Password

string externalCourseId

path variable
required

Course provider's ID for the course

string externalId
required

The course provider's ID for the course class (in their booking system)

string location
optional
Location for the course class

int availableSeats
optional

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
optional

  • address.addressLine1
  • address.addressLine2
  • address.city
  • address.zipCode
  • address.country

PriceDto price
optional

Price consists of:

  • price.currency
  • price.amount




Allowed currencies: NOK, EUR, USD, GBP

boolean sendScheduleInfoToParticipants

If true the system will send calendar invitation information to the students on the class.
Default: true.

Return value

Returns information on the updated course class

cancelledTrue if the course class is cancelled
courseExternalIdThe 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)

locationLocation for the course class

availableSeats

Number of available seats

enrollmentDeadlineEnrollment deadline
cancellationDeadlineCancellation deadline
startDateStart date
startTimeStart time
endDateEnd date
endTimeEnd time

address

Address consists of:

  • addressLine1
  • addressLine2
  • city
  • zipCode
  • country

price

Price consists of:

  • currency
  • amount
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 DATAusername=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
}