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
- Go to Products > Code and open the challenge.
- Click Settings at the top.

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

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
- Open the challenge and click Settings > Publish Code.
- Select Unpublished (Unpublished code will not be available to add in a product) and click Save.

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"].

To fix it:
- Open Settings > Associated Contents to see how many Products and Libraries use the challenge.
- In each course named in the message, open the Code Challenge lesson that uses the challenge and click Move To Trash.
- Unpublish the challenge again.
What to do next
- Create a coding challenge: build a new challenge.
- Embed a coding challenge into courses: add it as a lesson.
- Delete code challenges: remove challenges you no longer need.
If you have questions, contact us at support@learnyst.com.