users

Ban User

Create a ban on a user. Different types of bans can be set by selecting a type.

post/{site_id}/bans

Request

  • Base URL
    https://api.viafoura.co/v2
  • URL
    https://api.viafoura.co/v2/{site_id}/bans
  • Auth
    none declared

Path parameters

site_idstring required

Site ID is either a site domain or an ID (provided to you by Viafoura Customer Success).

Request body */*

durationinteger
permanentinteger
type'ghost' | 'hide' | 'posting' | 'login' | 'none'

Severity level of ban

user_idinteger

Response

OK

uuidstring uuid
user_uuidstring uuid
ban_level'ghost' | 'hide' | 'posting' | 'login' | 'none'

Severity level of ban

is_expiredboolean
user_notesstring

Changes

No recorded changes to this operation across all 2 revisions of this API.