udpate index get data api