Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Add course class

Adds a course class to a course

Resource URL

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

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
required
Location for the course class

int availableSeats
required

Number of available seats. Must be a positive number or zero.

Date enrollmentDeadline
required
Enrollment deadline
Date cancellationDeadline
required
Cancellation deadline
Date startDate
required
Start date
Time startTimeStart time
Date endDate
required
End date
Time endTimeEnd time

AddressDto address
required

Address required fields:

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

PriceDto price
required

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 created course class

cancelledfalse
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:

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

price

Price consists of:

  • price.currency
  • price.amount
boolean sendScheduleInfoToParticipants

If 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/add

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
}