update_published_courses
Batch-update published courses to change their behavior, such as access periods, open access, and catalog visibility. Rejects immutable fields like slug, course_id, and domain_id.
Instructions
Change how an already-published course behaves. This is a BATCH operation.
`published_courses` is the batch: every item needs an `id`, the
published-course id, plus the fields to change.
THREE FIELDS CANNOT CHANGE AFTER PUBLISHING: `slug`, `course_id` and
`domain_id`. Skilljar accepts them here and silently ignores them, so this tool
rejects them instead of letting you believe the change happened. To move a
course to a different slug or domain, unpublish and publish again - and expect
the old URL to stop working.
Sending `access_period_starts_at` or `access_period_ends_at` as null CLEARS the
date. Omitting the key leaves it alone.
Changing `open_access` or `visible_on_catalog` changes what anonymous visitors
can see, immediately.
Requires the `published-courses:write` OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| published_courses | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| note | Yes | ||
| total | Yes | ||
| failed | Yes | ||
| succeeded | Yes |