update script api