Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional endpoint to increase monthly limit by email address or token #60

Open
aldy505 opened this issue Nov 9, 2022 · 0 comments
Open
Labels

Comments

@aldy505
Copy link
Member

aldy505 commented Nov 9, 2022

Create a new endpoint on the registration module to increase a user's monthly limit. It searches by user's token or email address, with token being the first priority. If the token is null or an empty string, it will search by the email address. If both token and email address fields are empty, return an error of BadRequest.

Endpoint: PATCH /api/increase-limit

Request body:

{
  "email": "string", // can be empty string / nullable
  "token": "string", // can be empty string / nullable
  "new_limit": 100
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant