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
| POST | GET |
Parameters
string username | Username |
string password | Password |
string externalCourseId path variable | 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
| successful | true | ||
Error codes
| Error Code | Meaning |
|---|---|
| 404 | External course class with specified id does not exist. Please create new class using Add course class method |
| 409 | External course class does exist and is already Published, no restore action is required |
Example request
URL | |
| POST DATA | username=username&password=secret |
{ "sucessful":true, "errorMessage":"" } |