Skip to main content

Archive or unarchive a course

PATCH 

/api/courses/:id/archive

Toggles a course's archived state. Both archiving and un-archiving are admin-only: freezing a course (or reopening a frozen one to edits) is a privileged action. Archiving also runs a safety check (canArchiveCourse) using the course's stored dates rather than any client value, to avoid timezone drift deciding whether a course has really ended.

View source

Request

Responses

The updated course (id, name, code, isArchived, updatedAt).