Update docstring and refactor http request call parameters