Site sections

Create and organize high-level sections for your docs site.

Sections help partition your site's content at the top level. They can be modified, deleted, or reorganized to reflect your site's changing structure.

The SiteSection object

Attributes
objectstring Β· enumRequired

The object type, which is always "site-section"

Possible values:
idstringRequired

Unique identifier of the site section

titlestring Β· min: 2 Β· max: 128Required

Title of the site section

descriptionstring Β· max: 256Optional

Description of the site section

defaultbooleanOptional

Whether this is the default section for the site

pathstring Β· min: 1 Β· max: 100Required

Path to the section on the site

conditionstring Β· max: 1024Optional

Conditional expression used to evaluate whether the site section should be shown to the site's visitor.

sectionGroupstringOptional

ID of the section group the section belongs to in the site

iconstring Β· icon Β· max: 50Optional

Name of the icon

Example: gear

The SiteSection object

List all site sections

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

pagestringOptional

Identifier of the page results to fetch.

limitnumber Β· max: 1000Optional

The number of results per page

Responses
200

OK

application/json
Responseall of
get
/orgs/{organizationId}/sites/{siteId}/sections
200

OK

Add a section to a site

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
spaceIdstringRequired

ID of the space to be added to the section as a site space variant

titleone ofOptional
string Β· min: 2 Β· max: 128Optional

Title of the site section

or
string Β· enum | nullableOptionalPossible values:
iconone ofOptional
string Β· icon Β· max: 50Optional

Name of the icon

Example: gear
or
string Β· enum | nullableOptionalPossible values:
Responses
post
/orgs/{organizationId}/sites/{siteId}/sections
201

Section added to the site

Delete a site section

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionIdstringRequired

The unique id of the section within a site

Responses
delete
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}

No content

Update a site section

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionIdstringRequired

The unique id of the section within a site

Body
titlestring Β· min: 2 Β· max: 128Optional

Title of the site section

pathstring Β· min: 1 Β· max: 100Optional

Path to the section on the site

defaultSiteSpacestringOptional

ID of the site-space to be used as the default in this section.

conditionone ofOptional

Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.

string Β· max: 1024Optional

Expression to evaluate

or
string Β· enum | nullableOptionalPossible values:
iconone ofOptional
string Β· icon Β· max: 50Optional

Name of the icon

Example: gear
or
string Β· enum | nullableOptionalPossible values:
descriptionone ofOptional
string Β· max: 256Optional

Description of the site section

or
string Β· enum | nullableOptionalPossible values:
Responses
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
200

OK

Deprecated

Move a site section to a new position. (Deprecated) use sortSiteStructure instead.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionIdstringRequired

The unique id of the section within a site

Body
Responses
200

Site section moved

application/json
post
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move

Last updated

Was this helpful?