Ferdinand was forced to reinstate the liberal Spanish Constitution of 1812 . The coup leaders , who had been assembled as an expeditionary force to suppress the American independence movements , compelled a reluctant Ferdinand to reinstate the liberal Spanish Constitution of 1812 .