update api call