Why is it not possible to unpublish blog articles?

HiddeHidde partnerPosts: 15Member, Partner partner

I found this weird bug in the Lightspeed API.

When I do the following:

$api->blogsArticles->update($article_id, [
  "isPublished" => true,
  "publishedAt" => $publish_date
]);

It just works like expected. But when I want to do the opposite:

$api->blogsArticles->update($article_id, [
  "isPublished" => false,
  "publishedAt" => null // With or without the publishedAt doesn't make any difference
]);

the blogpost just stays visible in the Backoffice and the storefront.

How can I solve this?

Hidde Schuurman | Lightspeed App Developer bij InStijl Media | Gold Partner Lightspeed
Tags:

Answers

  • frenchyknitsfrenchyknits Posts: 1Member

    I'm having the same issue. I'm not working with the exact code but from within the back office. In order to unpublish a blog post, I have to exit the actual article and use a bulk unpublish action from the blog post listing.

Sign In or Register to comment.