Updated to correct api endpoint