Added a check if usertype is not set, default to human, added the url path in api to include the user-type variable