The state's top court on Tuesday rejected Donald Trump's attempt to avoid being deposed in a civil investigation into his business, paving the way for the former president and his two oldest children to testify.

Last week, Trump and his family agreed to answer questions under oath if the Court of Appeals didn't intervene.

The state's high court argued that it was unwarranted to intervene in the case. The court denied Trump's request to stay the subpoenas.

An intermediate appellate court ruled in favor of a subpoena for Trump's testimony. The trial court ruled in May that Trump and his children would be deposed, affirming a lower court's previous ruling that James and her office had the right to question people tied to the Trump Organization.

James said that her office had uncovered evidence that suggested Trump and his organization had overstated the value of assets.

The investigation was a political witch hunt, according to the former president. The representative for Trump didn't reply immediately.