update get index api
update