Unpublish Collection Item

On Live site, I can’t seem to find documentation or method to follow to unpublish a single collection item via API. Setting isdraft to true works to change status, but the page is still loads without a 404, I would hope if isdraft is true on ‘/live’ then it unpublishes as well (but nope). Whats the best method to follow to unpublish a single collection item from live site?

2 Likes

Yes I think the only way is to delete it or update it to " draft: true "

But I would be interested in an endpoint to do that in a more efficient way !

In beta endpoints now (and soon to be /v2), we will be introducing new behavior for working with CMS Items as it relates to publishing and unpublishing single items. More details here

tl;dr, in beta, you can call the unpublish item (live) API which will remove the item from the live site. You can alternatively set isDraft: true on the live item which will allow the item to still be live on the site, but allow you to make draft changes separately.

1 Like