This endpoint updates an existing user account details. If the user has at least once set a password, you cannot change email address.
Bearer authentication header of the form Bearer
Preferred language for the response
The unique identifier of the user to update
"user-id-123"
The unique identifier of the merchant account
35253486
The updated first name of the user
"John"
The updated last name of the user
"Phiri"
The updated email address of the user (only updated if email is not confirmed)
"john.phiri@example.com"
The updated phone number of the user
"0881234567"
The unique identifier of the role to assign
"MERC_ADMIN"
The email address of the user performing the update
"admin@example.com"
Success - Merchant user updated successfully
Success message confirming the update
"User account has been updated successfully"