ML-31 Make API functions take better inputs

ability to save settings via api (currently doesnt work tho)