To create a root category:

The category is automatically added to the rootCategories property of the catalog.