Legal basis: People's Republic of China (PRC) Civil Procedure Law.
Article 2 The task of People's Republic of China (PRC)'s Civil Procedure Law is to protect the litigants from exercising their litigation rights, ensure that the people's courts find out the facts, distinguish right from wrong, correctly apply the law, hear civil cases in time, confirm the relationship between civil rights and obligations, sanction civil violations, protect the legitimate rights and interests of the litigants, educate citizens to consciously abide by the law, maintain social and economic order and ensure the smooth progress of socialist construction.
Article 51 The plaintiff may waive or change the claim. The defendant may admit or refute the claim and has the right to file a counterclaim.