update datapoints api