SSO
  1. role
SSO
  • sso
    • admin
      • account-create
      • account-suspend
      • account-unsuspend
      • account-bind-wallet
    • applications
      • scope
        • add
        • delete
      • user
        • add
        • update
        • delete
        • user-all
        • is-allowed
      • create
      • delete
      • new-api-key
      • all
      • all-own
      • details
      • is-owner
    • auth
      • token
        • token-refresh
      • register
        • register
        • request-email-code
        • verify-email-code
      • password
        • password-reset
        • request-email-code
        • verify-email-code
      • discord
        • authorize-URL
        • login
      • login
      • auth-me
      • logout
    • auth-eth
      • login-challenge
      • login
      • bind-challenge
      • bind-account
      • is-bound
    • access
      • planning
        • session
          • get
          • all
          • find
          • create
          • update
          • delete
        • assistant
          • create-sessions
          • delete-sessions
        • get
      • pbe-access
        • is-authorized
    • newsletter
      • get-subscribers
    • user
      • me
        • email
          • update
        • password
          • update
      • role
        • all
          GET
        • update-role
          POST
        • update-role-batch
          POST
        • delete-role
          DELETE
        • delete-role-batch
          DELETE
      • all
        GET
      • find
        GET
    • wallet
      • find-owner
      • find-wallet
    • Get API version
      GET
  1. role

update-role-batch

POST
/users/roles/batch
Update the role of given Users.
Available roles : admin, moderator, tester, ea-tester, user

请求参数

Header 参数
Authorization
string 
必需
示例值:
Bearer {{token}}
Body 参数application/json
userIds
array[integer]
可选
userEmails
array[string] | null 
可选
role
string 
必需
示例
{
    "userIds": [2],
    "role": "moderator"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sso.gameown.io/api/users/roles/batch' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userIds": [2],
    "role": "moderator"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-03-16 14:04:34
上一页
update-role
下一页
delete-role
Built with