community

Assign Role

管理员指定他人社区角色。

约束:不能改自己的角色(防止唯一管理员把自己降级后无人可管)。

post/api/v1/community/roles/assign

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/assign
  • Auth: OAuth 2 (password, token URL /api/v1/auth/oauth/token)

Request body

user_idstring required

目标用户 ID

rolestring required

member / moderator / admin

Response

Successful Response

unknown required

Changes

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