👥
User Login API
  • Getting Started
    • User Login API
    • Install Server Locally
    • Test with Insomnia
    • Cloud Server Installation
    • Remote Access and DB Authentication
    • Enable HTTPS
    • Enable Email Sending
  • Requests
    • Unity Requests
    • Register and Login
    • Get Users
    • Edit Users
    • Gain Rewards
    • Contacts/Friends
    • Activity
  • Other
    • Custom Code and Data
    • NetcodePlus Integration
    • Support and Community
Powered by GitBook
On this page
  1. Requests

Gain Rewards

Only the access levels admin or server can give rewards. In the base template there are only XP and coins values as example. But by editing the code you could add any data you like to the users schema.

POST http://127.0.0.1/users/rewards/gain/:userId

Replace :userId by the ID of a user like 63cf123e98f493e8c

{
    "refreshToken": "OGhueE8zRlcySlZRUHZkbG1U"
}

Header authorization access_token

Last updated 2 years ago