Making the api more consistent across methods
Made put and post methods in api test pass