update api invoke method