Update API call to follow the latest spec