---
title: "Re-publish a course"
method: POST
path: "/v2/published-courses/{id}/publish/"
tags: ["Published Courses"]
---

# Re-publish a course

`POST /v2/published-courses/{id}/publish/`

Re-publish a previously unpublished course: sets live=true and reassigns the slug.

**Required OAuth scope:** `published-courses:write`

## Path parameters

- `id` string, required

## Response `200`

OK

- PublishedCourseDetailResponse — JSON:API single-resource response for a published course.
  - `data` PublishedCourseResource, required — JSON:API resource object for a published course.
    - `type` string — Always "published-courses".
    - `id` string, required — Opaque published-course ID. Use in URL paths.
    - `attributes` PublishedCourseAttributes, required — Attributes of a published-course resource object.
      - `external_id` string, required — Stable UUID5 for cross-system correlation.
      - `slug` string, required — URL path of the course on the domain. Unique per domain.
      - `live` boolean, required — Whether the course is currently published (live) on the domain.
      - `is_hidden` boolean, required — Hidden from the catalog; visible only to associated groups.
      - `visible_on_catalog` boolean, required — Whether the course shows on the domain catalog.
      - `open_access` boolean, required — Allow anonymous access (no registration). Disables per-user analytics when true.
      - `strict_enforce_group_visibility` boolean, required — Block access for students the course is not visible to.
      - `visibility_override_type` 'GROUP' | 'CATEGORY', required — Which visibility mode the course uses: GROUP or CATEGORY.
      - `access_period_starts_at` string, date-time, nullable — Start of the registration/enrollment window, or null.
      - `access_period_ends_at` string, date-time, nullable — End of the registration/enrollment window, or null.
      - `restrict_access_start_end_dates` boolean, required — Enforce the access window above.
      - `allow_self_service_reenroll` boolean, required — Let students re-enroll immediately on completion.
      - `unique_progress_per_enrollment` boolean, required — New progress record on each re-enroll.
      - `require_all_prerequisites` boolean, required — Require all prerequisites before enrolling.
      - `created_at` string, date-time, required — Creation timestamp.
      - `modified_at` string, date-time, required — Latest update timestamp.
    - `relationships` object, nullable — Related course and domain linkages.
    - `links` object, nullable — Self link.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/skilljar/apis/skilljar-api-v2.md) · [All operations](https://skmtc.net/skilljar/apis/skilljar-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skilljar/skilljar-api-v2/revisions/f8025de20169/schema)
