# How to publish / unpublish

**URL:** <https://discourse.getcockpit.com/t/how-to-publish-unpublish/553>\
**Category:** Support\
**Created:** [February 1, 2019, 11:47am UTC](https://discourse.getcockpit.com/t/how-to-publish-unpublish/553 "2019-02-01T11:47:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamieholliday](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/jamieholliday/32/224_2.png) [@jamieholliday](https://discourse.getcockpit.com/u/jamieholliday)\
**Post date:** [February 1, 2019, 11:47am UTC](https://discourse.getcockpit.com/t/how-to-publish-unpublish/553/1 "2019-02-01T11:47:38Z")

</div>

I’m struggling to find where I can publish / unpublish a collection item. There doesn’t seem to be any UI for this. When I fetch the collection with `"filter": {"published": true}` I get no results so I assume these items are unpublished by default.

I installed cockpit using the docker container

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [February 1, 2019, 3:03pm UTC](https://discourse.getcockpit.com/t/how-to-publish-unpublish/553/2 "2019-02-01T15:03:19Z")

</div>

You need to create a field named published (of type boollean), or you can use the moderation addon - [https://github.com/pauloamgomes/CockpitCMS-Moderation](https://github.com/pauloamgomes/CockpitCMS-Moderation)
