update api in index