Update url and json structure to match api