Swagger: Create Table Of Contents
swagger_create_table_of_contentsAdds table of contents items to portal product sections for API references, HTML, or Markdown. Provide section ID, title, slug, order, and content type to create or copy navigation entries.
Instructions
Create a new table of contents item in a portal product section. Supports API references, HTML content, and Markdown content types.
Toolset: Table Of Contents
Parameters:
sectionId (string) required: Section ID - unique identifier for the section within the product
type (enum) required: Type of table of contents creation - 'new' to create from scratch or 'copy' to duplicate an existing one
title (string) required: Title of the table of contents item - will be displayed in navigation (3-40 characters)
slug (string) required: URL-friendly identifier for the table of contents item - must be unique within the section (3-22 characters, lowercase, alphanumeric with hyphens/underscores/dots)
order (number) required: Order position of the table of contents item within its parent section or item
parentId (string): Parent table of contents item ID - null for top-level items, or ID of parent item for nested structure
content (object): Content configuration for the table of contents item
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | URL-friendly identifier for the table of contents item - must be unique within the section (3-22 characters, lowercase, alphanumeric with hyphens/underscores/dots) | |
| type | Yes | Type of table of contents creation - 'new' to create from scratch or 'copy' to duplicate an existing one | |
| order | Yes | Order position of the table of contents item within its parent section or item | |
| title | Yes | Title of the table of contents item - will be displayed in navigation (3-40 characters) | |
| content | No | Content configuration for the table of contents item | |
| parentId | No | Parent table of contents item ID - null for top-level items, or ID of parent item for nested structure | |
| sectionId | Yes | Section ID - unique identifier for the section within the product |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| documentId | No |