Set candidate password when creating their profile



We create candidate profiles programmatically. How can I use the API to set the candidate's login password when I create their profile?

If I can't set it, is there a way to retrieve the default password value? Is there a way to force them to change their password at first logon?