All websites have a section that cannot be removed. This so-called root section covers the whole website.
The root section always has a sectionId
of 0
. So if you know a websiteId
, you can access the ‘whole’ of that website with a sectionId
of 0
.
By having a root section for all websites, we can consistently use APIs and routes which refer to a section or a website in the same way. For example, /websites/{websiteId}/sections/{sectionId}
is commonly used in many API routes, this route can represent the whole website or just one section of it consistently.