forgot to convert this ajax call to use the api helper