Made put tests pass for api