PATCH /api/auth/users/points
Updates the points balance for a specific user identified by email.Authentication
No authentication required.Request Body
Email address of the user whose points should be updated.
New points value to set for the user.
Request Example
Response
Success message confirming points update.
Success Response (200 OK)
Error Responses
404 Not Found - User Does Not Exist
cURL Example
Notes
- Points value is stored as a string in the database
- This endpoint does not add to existing points; it sets the absolute value
- No validation is currently applied to the request body
- Rate limiting is applied to this endpoint
- Consider adding authentication/authorization for production use