republish_published_course
Restore a previously unpublished course to its domain by setting it live and generating a new slug; enrollments and learner progress stay intact.
Instructions
Put a previously unpublished course back on its domain.
`id` is the published-course id of the publication to bring back.
Sets `live` to true and REASSIGNS the slug. The slug is regenerated, not
restored: if another course claimed the old one while this was down, or the
title changed, THE PUBLIC URL WILL BE DIFFERENT. Read the returned `slug` and
update any links rather than assuming the old address still works.
Enrollments and learner progress are untouched throughout.
Requires the `published-courses:write` OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| live | No | ||
| slug | No | ||
| course_id | No | ||
| domain_id | No | ||
| is_hidden | No | ||
| created_at | No | ||
| external_id | No | ||
| modified_at | No | ||
| open_access | No | ||
| visible_on_catalog | No | ||
| access_period_ends_at | No | ||
| access_period_starts_at | No | ||
| visibility_override_type | No | ||
| require_all_prerequisites | No | ||
| allow_self_service_reenroll | No | ||
| unique_progress_per_enrollment | No | ||
| restrict_access_start_end_dates | No | ||
| strict_enforce_group_visibility | No |