How to change AuthenticationProviderType of an existing User in Okta?

I have an Okta User and I want to update its provider from AuthenticationProviderType.FEDERATION to AuthenticationProviderType.OKTA .

I used to build the User using UserBuilder as follows:

UserBuilder userBuilder = createUser(tenantId, firstName, entityId, ssoEnabled, getLogin(tenantId, email), email, null, TYPE_USER);
User user = userBuilder.buildAndCreate(client);

Is there any way to update the provider type in the existing user?