Change tag history settings via script

Is it possible to change the tag history settings (eg. history provider, value mode, historical scan class etc. ) vis scripting? If so are there any examples if this being done?



Just in case anybody sees this and is looking for the answer like I was an hour ago:
system.tag.configure and system.tag.getConfiguration