cURL
curl --request PUT \ --url https://api.example.com/api/users/me
{ "success": true, "timestamp": "<string>", "data": { "id": 123, "email": "<string>", "firstName": "<string>", "lastName": "<string>", "roles": [ {} ] } }
Update the authenticated user’s profile information
PUT /api/users/me
Authorization: Bearer <access_token>
Show properties
curl -X PUT http://localhost:8080/api/users/me \ -H "Authorization: Bearer <access_token>" \ -H "Content-Type: application/json" \ -d '{ "firstName": "Jane", "lastName": "Smith" }'
{ "success": true, "timestamp": "2026-03-03T10:30:00Z", "data": { "id": 1, "email": "[email protected]", "firstName": "Jane", "lastName": "Smith", "roles": ["MEMBER"] } }
400 Bad Request - Validation Error
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "error": "Validation failed", "details": { "firstName": "Name must be between 2 and 50 characters" } }
401 Unauthorized
{ "success": false, "timestamp": "2026-03-03T10:30:00Z", "error": "Unauthorized" }
UserController.java:26-29
UserEditProfileRequest.java:7-17