Request Profile Update
Requests
Request Profile Update
Request changes to profile information (phone, address, or profile image)
POST
Request Profile Update
Endpoint
Updatable Fields
Phone Number
Update contact phone number
Address
Update residential address
Profile Image
Update profile picture URL
Request Body
New phone numberExample:
"+1234567890"New residential addressExample:
"123 Main St, City, Country"New profile image URLExample:
"https://example.com/images/profile.jpg"At least one field is required. You can update one, two, or all three fields in a single request.
Response
Success message confirming the request was created
Unique identifier for the profile update request
Code Examples
Response Example
201 Created
Error Responses
Validation Rules
Required Fields
At least one field (telefono, direccion, or img_perfil) must be provided in the request body
Pending Requests
Employees cannot create a new profile update request if they already have one pending approval
Business Logic
Data Storage
The proposed changes are stored in a separate table (actualizacion_perfil) linked to the main request:
Related Operations
Approve Profile Update
PUT
/api/solicitudes/:id/aprobarAdmin approves the request and applies changes to employee profileReject Profile Update
PUT
/api/solicitudes/:id/rechazarAdmin rejects the request without applying changes