public void WhenIUpdateALocationToForId(string location, string Id) { var path = string.Format("locations/{0}", Id); var data = new Location() { name = location }; string payload = JsonHelpers.ConvertObjToJson(data); APIHelpers.PutRequest(path, payload, token); }