Update to new api endpoint