Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Restore a course class

This method is responsible for restoring an external course class that has previously been cancelled.

Important Notice

  • Classes without any enrollment are deleted immediately after being cancelled.
  • Classes with enrollments are deleted minimum after 1 hour after they being cancelled.

Resource URL

URL: v1/courses/get/{externalCourseId}/courseClasses/restore/{externalCourseClassId}

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 externalCourseClassId

path variable

required

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


Return value (HTTP code: 200)

Returns a status message

successfultrue

Error codes

Error CodeMeaning
404

External course class with specified id does not exist.

Please create new class using Add course class method

409External course class does exist and is already Published, no restore action is required

Example request

URL

https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/courses/get/6/courseClasses/restore/10234

POST DATAusername=username&password=secret
{
"sucessful":true,
"errorMessage":""
}