Skip to content
  • There are no suggestions because the search field is empty.

Publish and Unpublish Code Challenges

Publish a coding challenge so you can add it to your courses, or unpublish it to stop new use.

A coding challenge starts Unpublished. Publish it to add it to your courses as a Code Challenge lesson. Unpublish it when you want to stop it from being added to more products.

Publish a coding challenge

  1. Go to Products > Code and open the challenge.
  2. Click Settings at the top.

Code builder with the Settings button

  1. Click Publish Code.
  2. Select Published (It will publish code to add in products) and click Save.

Publish Code page with Published and Unpublished options

You'll see Updated Successfully, and Published becomes the Current State. The challenge now appears when you add a Code Challenge lesson to a course with From all codes. See Embed a coding challenge into courses.

Only published challenges appear in the list when you add a Code Challenge lesson. If you can't find a challenge there, check that it's published. Before publishing, test it with Preview.

Unpublish a coding challenge

  1. Open the challenge and click Settings > Publish Code.
  2. Select Unpublished (Unpublished code will not be available to add in a product) and click Save.

Unpublished as the current state

If you can't unpublish the challenge

You can't unpublish a challenge that is still used in a course. You'll see a message that names the course, for example: Please remove the code challenge before unpublishing from ["Course name"].

Error when unpublishing a challenge that is used in a course

To fix it:

  1. Open Settings > Associated Contents to see how many Products and Libraries use the challenge.
  2. In each course named in the message, open the Code Challenge lesson that uses the challenge and click Move To Trash.
  3. Unpublish the challenge again.

What to do next

If you have questions, contact us at support@learnyst.com.