admin-users

Add User To Admin

将指定用户添加为管理员 需要JWT认证且验证为管理员,且只有用户名为admin的根用户才有权限 POST方法,参数为uuid,将指定uuid的用户users表is_superuser列设置为1

post/api/v1/admin_users/add_user_to_admin

Request

  • Base URL: https://opencloudos.org (the document declares no server; this is the origin it was published from)
  • URL: https://opencloudos.org/api/v1/admin_users/add_user_to_admin
  • Auth: OAuth 2 (password, token URL /api/v1/users/login)

Request body

uuidstring uuid4 required

Response

Successful Response

messagestring required

Changes

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