updates api call