See section 10.6 on Dissertations and Theses (pp.333-334). There are a few variations that depend on where you retrieve the document from, so be mindful of the different rules in this section.
Note
All information and page number references are based on the 7th edition of the Publication Manual of the American Psychological Association (2020).