Updates the profile information of the currently authenticated user.
PATCH
/auth/user/me
curl \
--request PATCH 'http://localhost:8080/api/auth/user/me' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"firstName":"John","lastName":"Doe","dateOfBirth":"1990-01-01"}'
Request examples
{
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1990-01-01"
}
Response examples (200)
{
"success": true,
"code": 200,
"message": "string",
"data": {
"id": "user_12345",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1990-01-01",
"avatarUrl": "https://cdn.example.com/avatars/user_12345.jpg",
"createdAt": "2025-08-30T10:30:00Z",
"updatedAt": "2025-08-30T15:45:00Z",
"phoneNumber": "+1234567890"
}
}
Response examples (400)
{
"success": false,
"code": 42,
"errorCode": "string",
"message": "string",
"timestamp": "2025-05-04T09:42:00Z"
}
Response examples (401)
{
"success": false,
"code": 42,
"errorCode": "string",
"message": "string",
"timestamp": "2025-05-04T09:42:00Z"
}
Response examples (500)
{
"success": false,
"code": 42,
"errorCode": "string",
"message": "string",
"timestamp": "2025-05-04T09:42:00Z"
}