Admin

Create a new admin.

post/api/admin

Request

  • Base URL
    https://api.ha-man2.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.ha-man2.com/api/admin
  • Auth
    OAuth 2
    Password
    Token URL: /api/admin/token

Request body

passwordstring required
telegram_idinteger nullable
discord_webhookstring nullable
status'active' | 'disabled' nullable
data_limitinteger nullable
sub_templatestring nullable
sub_domainstring nullable
profile_titlestring nullable
support_urlstring nullable
notestring nullable
role_idinteger required
usernamestring required

Response

Admin created successfully

idinteger nullable
usernamestring required
telegram_idinteger nullable
discord_webhookstring nullable
sub_domainstring nullable
profile_titlestring nullable
support_urlstring nullable
total_usersinteger
used_trafficinteger
data_limitinteger nullable
status'active' | 'disabled' | 'limited'
sub_templatestring nullable
lifetime_used_trafficinteger nullable
notestring nullable
is_disabledboolean required
is_limitedboolean required

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      the response's property default value changed from true to false for the status