Allowing portal access to patient via Restful API

Hey all
I am trying to create a patient from restful api but i want the patient to be able login via portal. what fields i should add to make this happen, any help will be useful.

Regards

@echosalik
Following are the steps that need to be followed to allow patients created from restful api login to portal.
1.During patient creation from restful api an entry should be made in patient_data and patient_access_onsite tables.
2.Encrypt the portal password along with salt password and store in patient_access_onsite table.

Hope this may help you.

Thanks & regards
Visolve