Skip to main content

Get User Profile

Retrieves a user’s profile information by their ID.

Path Parameters

number
required
The unique identifier of the user

Response

boolean
required
Indicates if the request was successful
object
required
User profile data
number
User ID
string
User’s email address
string
User’s first name
string
User’s last name
string
User’s phone number (optional)
string
User’s role (e.g., “USER”, “ADMIN”)
string
Error message if the request failed

Error Responses


Update User Profile

Updates a user’s profile information.

Path Parameters

number
required
The unique identifier of the user to update

Request Body

string
required
User’s first name (minimum 2 characters)
string
required
User’s last name (minimum 2 characters)
string
User’s phone number (optional)

Response

boolean
required
Indicates if the request was successful
object
Updated user profile data
string
Success message
string
Error message if the request failed

Validation Errors