ML-31 Make API functions take better inputs

Making API calls more 'RESTFUL'