update get index api