community

Ban User

管理员禁用/解禁用户。

约束:不能禁自己;不能禁其他管理员(避免管理员互相封禁导致治理瘫痪)。 被禁用户仍可浏览社区,但一切写操作(发帖/回帖/点赞/举报)返回 403。

post/api/v1/community/roles/ban

Request

  • Base URL: https://api.hipowork.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.hipowork.com/api/v1/community/roles/ban
  • Auth: OAuth 2 (password, token URL /api/v1/auth/oauth/token)

Request body

user_idstring required

目标用户 ID

bannedboolean
reasonstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.