Authorization
Requires authentication with one of the following roles:- Admin: Can update any member and reassign to different unions
- Supervisor: Can update members in unions managed by their credit officers
- Credit Officer: Can update members in their assigned unions only
Path Parameters
The unique identifier of the union member to update
Request Body
All fields are optional. Only provided fields will be updated.Member’s first name
Member’s last name
Member’s email address (must be unique)
Member’s phone number
Member’s physical address
Member’s date of birth (ISO 8601 format)
Member’s gender
Member’s marital status
Member’s profession or occupation
Member’s employer or company name
City of residence
State or province
Country of residence
Postal or ZIP code
Additional notes about the member
ID of the union (Admin only - triggers reassignment with history tracking)
ID of the assigned credit officer
Response
Indicates if the update was successful
Success or error message
Updated union member object with all current fields
Special Behaviors
- Union Reassignment: Only admins can change
unionId. When changed, aUnionMemberReassignmentrecord is created for audit purposes, and thecurrentOfficerIdis automatically updated to the new union’s credit officer. - Email Validation: Email must be unique. The system checks for existing emails (case-insensitive) before updating.
- Field Sanitization: String fields are trimmed. Empty strings are converted to
null. - Partial Updates: Only fields included in the request body are updated; others remain unchanged.
