Cal. Health & Safety Code § 103425
(e) A petition seeking a judgment recognizing the change of gender and sex identifier to female, male, or nonbinary may be made to a superior court within this state, even if the person whose gender and sex identifier is proposed to be changed does not reside within the State of California, if the person is seeking to change the designation to reflect their gender on at least one of the following documents: