fixed when no arg needed for body with POST
updated function to new naming convention