Confluence Questions REST ResourcesPUBLIC SINCE 2.3

by Atlassian for Confluence Server 5.3+

SpamPreventionResource

The following resources are applicable:

/spam/instaban/{userKey}

Mount Point: /rest/questions/1.0/spam/instaban/{userKey}

POST

Instaban a specific user. Only administrators or users with high reputation can execute this REST API.

Parameters

name description type default
userKey key of the banned user path

Response Body

element: (custom)
media types: application/json

200 OK on success or 404 NOT FOUND if the dark feature is not enabled or 400 BAD REQUEST if the user is not found or 403 FORBIDDEN if the current user is not allowed to instaban another one.