EggyByte Server
  1. Admin
EggyByte Server
  • Default module
    • 项目介绍
    • 用户协议
    • 隐私政策
    • SuperDungeon
      • 超能魔盗团 隐私政策
      • User
        • Get User Data
        • Free Lottery
        • Paid Lottery
        • Sell Artwork
        • Find Top Users
        • Get Initial Data
        • Get Access
        • Change Name
      • Rank
        • Update
        • Find Top Users
      • Local
      • Remote
    • EggyByte
      • Account
        • Login
        • Register
        • Login Or Register
        • Access
        • Buy
        • Get Public Access
        • Formal Register
      • Game
        • Save Data
        • Load Data
      • Test
        • Random String
        • Get Map Json
      • Crypto
        • Compute Hash
        • Encrypt
        • Encrypt Map
        • Decrypt
      • Ad
        • Show
        • Debug
        • Impression Callback
      • User
        • Lock Test
        • Get User Data
        • Open Chest
      • Admin
        • Create Api Roles Copy
          POST
        • Create Api Roles Copy Copy
          POST
        • Delete Api Roles
          POST
        • Create Api Roles
          POST
      • Database
        • Update Mongo Users
        • List Databases
        • List Collections
        • List Mongo Users
        • Get Collection Stats
        • Get Collection Info
        • Get Paginated Documents
        • Create Mongo Users
        • Create Mongo Databases
      • Mailing
        • Send Mail
        • Send Captcha
        • Check Captcha
      • ThirdParty
        • Connect Url
        • Callback
        • Payment Link
    • 1
    • Untitled Endpoint
      GET
    • Untitled Endpoint
      POST
    • Setup
      POST
    • Create Database
      POST
    • Get Card
      GET
    • Create Question
      POST
    • Create Collection
      POST
    • Get Dashboards
      GET
    • Get Dashboard
      GET
    • Get Dashboard Copy
      POST
    • Untitled Endpoint
      GET
    • Untitled Endpoint
      GET
  • tester/v1/tester.proto
    • TesterService
      • List recent test runs with optional filtering.
      • Run a multi-service test suite in one request.
      • Run focused tests for a single service.
      • Retrieve a previously executed test run by ID.
  • auth/v1/auth.proto
    • AuthService
      • GetJWKS returns the JSON Web Key Set for token validation Used by Higress and other services to validate JWT tokens
      • GetOIDCDiscovery returns the OIDC discovery document Required for Higress OIDC plugin configuration
      • Authorize initiates the OAuth2/OIDC authorization flow Standard OIDC authorization endpoint for Higress integration
      • Authorize initiates the OAuth2/OIDC authorization flow Standard OIDC authorization endpoint for Higress integration
      • IntrospectToken validates and returns information about a token RFC 7662 - OAuth 2.0 Token Introspection (internal use only)
      • RevokeToken revokes an access or refresh token RFC 7009 - OAuth 2.0 Token Revocation
      • Token exchanges authorization code or refresh token for access tokens Standard OIDC token endpoint for Higress integration
      • GetUserInfo returns user information from a valid access token Standard OIDC UserInfo endpoint for Higress integration
      • GetUserInfo returns user information from a valid access token Standard OIDC UserInfo endpoint for Higress integration
      • ListUsers lists all users with auth information (admin only)
      • UpdateUserRole updates user's role (admin only)
      • SendEmailVerification sends email verification code
      • VerifyEmail verifies email with verification code
      • ResolveUserIdentity resolves JWT token and returns user identity context Called by Higress OIDC plugin to get user information for header injection
      • Login authenticates user credentials and returns tokens
      • Logout invalidates user tokens and sessions
      • ChangePassword changes user password (requires authentication)
      • ConfirmPasswordReset confirms password reset with code
      • ResetPassword initiates password reset flow
      • RefreshToken refreshes an access token using a refresh token
      • Register creates a new user account with authentication credentials
      • GetUserSessions retrieves active sessions for a user
      • RevokeUserSession revokes a specific user session
  1. Admin

Delete Api Roles

POST
/admin/deleteapiroles

Request

Authorization
Add parameter in header
X-Access-Token
Example:
X-Access-Token: ********************
Header Params

Body Params application/json

Example
{
    "id": "IWZf/t9DSXtV9veaEDJwRA==",
    "type": "user-data",
    "game_info": "super-dungeon@W6APYNmwbktFAmx6EeVAsqYUmMRr1Ezj:b5uNGyADIo9hXfjiuHDoitv8gAG0DSSi",
    "sign": "zdMKYGDcnOZPk1klG1dXPIc9RoUs9c/70AhRT4Zzi63P+78SndBsIGX9DlA8dGlAPlTBLeb7Jpkl2Ys9z6U3COzCgp4/JMKSfrBBwCPxZg4JH/nxTj1XY7Gnl4Asrgwgb+c9IH4qF0VKXS/Ta+S9xZhbAeVCSpXWrNs6Pl4OZ+Cc7aL36f5go05OsgQ6Cz8q9Ts5IZdWnqL8nhNxmyM4bpAWQby9Gz0EkG2bd6qV",
    "data": "{\"levelData\":{\"level\":1,\"exp\":0},\"registerTime\":0,\"lastLoadTime\":0}"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/admin/deleteapiroles' \
--header 'X-Master-Key: {{master_key}}' \
--header 'X-Access-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "IWZf/t9DSXtV9veaEDJwRA==",
    "type": "user-data",
    "game_info": "super-dungeon@W6APYNmwbktFAmx6EeVAsqYUmMRr1Ezj:b5uNGyADIo9hXfjiuHDoitv8gAG0DSSi",
    "sign": "zdMKYGDcnOZPk1klG1dXPIc9RoUs9c/70AhRT4Zzi63P+78SndBsIGX9DlA8dGlAPlTBLeb7Jpkl2Ys9z6U3COzCgp4/JMKSfrBBwCPxZg4JH/nxTj1XY7Gnl4Asrgwgb+c9IH4qF0VKXS/Ta+S9xZhbAeVCSpXWrNs6Pl4OZ+Cc7aL36f5go05OsgQ6Cz8q9Ts5IZdWnqL8nhNxmyM4bpAWQby9Gz0EkG2bd6qV",
    "data": "{\"levelData\":{\"level\":1,\"exp\":0},\"registerTime\":0,\"lastLoadTime\":0}"
}'

Responses

🟢200成功
text/plain
Body

Modified at 2025-01-05 15:52:12
Previous
Create Api Roles Copy Copy
Next
Create Api Roles
Built with