Authentication
Update Profile
Update the authenticated user profile
PUT
Update Profile
Overview
Updates the authenticated user’s profile information. Users can update their name and email address. All fields are optional.Authentication
Required: This endpoint requires a valid JWT token in the Authorization header.Request Body
All fields are optional. Only include the fields you want to update.The user’s updated full name
The user’s updated email address. Must be a valid email format and unique in the system.
Request Example
Partial Update Example
Response
Returns the updated user object without sensitive data.Unique user identifier
User’s updated full name
User’s updated email address
User’s role (“customer” or “admin”)
ISO 8601 timestamp of account creation
Response Example
Error Responses
401 Unauthorized
Returned when no valid authentication token is provided.404 Not Found
Returned when the user no longer exists in the system.400 Bad Request
Returned when validation fails (invalid email format).409 Conflict
Returned when attempting to update to an email that’s already in use by another user.Notes
- Only the authenticated user can update their own profile
- The user ID is extracted from the JWT token, not from the request body
- Email addresses must be unique across all users
- The
rolefield cannot be updated through this endpoint - Password updates are not supported through this endpoint (use a dedicated password change endpoint)
Update Profile