users

Add spam role for a User

Changed on

Flag a user as spammer.

Spam Role Details:

  • Requires admin or moderator privileges.
  • Stops the user from creating new posts or comments, acting as a shadowban or block on activity.
  • Existing content remains but is hidden from search/feeds.
put/api/users/{id}/spam

Request

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

Path parameters

idinteger required

The ID of the user to assign the spam role.

Response

Spam role assigned to the user successfully

Changes

    • breaking

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

    • breaking

      removed the media type application/json for the 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