DEV Community API lacks DELETE; unpublishing done via PUT published:false
A user discovered that the DEV Community API does not have a DELETE endpoint for articles. Instead, articles can be unpublished by using a PUT request to set 'published' to false, a method not documented in the official API guide. The user tested this by creating a probe article and found unpublished articles return a 404 error on the public endpoint but remain listed in the author's unpublished view. This behavior means a 404 response can indicate an unpublished article rather than a deleted or non-existent one. The user plans to use this method to resolve duplicate articles on their blog.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in