change State api