users

Unpublish a User's Articles and Comments

Changed on

This endpoint allows the client to unpublish all of the articles and comments created by a user.

Administrative Action:

  • Requires the authenticated user to be an Administrator.
  • This is a destructive administrative action that immediately unpublishes all posts/comments from public feeds.
  • Ideal for handling spam accounts or cleanup operations.
put/api/users/{id}/unpublish

Request

  • Base URL
    https://dev.to
  • Auth
    • API key in header api-key
    • or HTTP bearer

Path parameters

idinteger required

The unique numerical ID of the user whose content will be unpublished.

Response

User's articles and comments successfully unpublished

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status