Unpublish an article
Changed onThis endpoint allows the client to unpublish an article.
The user associated with the API key must have any 'admin' or 'moderator' role.
The article will be unpublished and will no longer be visible to the public. It will remain in the database and will set back to draft status on the author's posts dashboard. Any notifications associated with the article will be deleted. Any comments on the article will remain.
Request
- Base URLhttps://dev.to
- Auth
- API key in header api-key
- or HTTP bearer
Path parameters
The ID of the article to unpublish.
Query parameters
Content for the note that's created along with unpublishing
Response
Article successfully unpublished
Changes
- breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the media type
application/jsonfor the response with the status
- breaking
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info