map update and sample api call