How to assign a new lead to an owner while inserting the lead via API?
While inserting lead
via API, make sure you are specifying the email
address of the lead owner. If you use the lead owner's name or userID, lead
will be assigned to the default login credential used in ticket