update api work