Add Docs to Product
Additional documentation (Markdown or HTML) can be added to enhance the user’s understanding and experience of API products. These documents are added as table-of-contents entries.
Use the POST Add table of contents entry endpoint to link a Markdown document.
📌 The
contenttypemarkdown/htmldistinguishes documentation from API references.
Sample Request
🚧 Important: The
sourcepropertyinternal/externaldetermines if it's possible to edit document's content only via API (external) or in the UI (internal). The default value isinternal.For documents managed via API flows you can prevent edits in the UI by setting
sourcetoexternal
Sample Response
Add Contents
Use the PATCH Update the contents of a document endpoint to provide actual content.
After documentation and API reference are added, the portal may look like:
Nest Pages
Nesting allows you to nest pages for better content structure. Use the parentId field in the request payload to create subpages.
The following parameters are used with the /table-of-contents/{tableOfContentsId} endpoint:
| Method | Parameter | Description |
|---|---|---|
| PATCH | parentId | Indicates parent page. If null, page is root-level. |
| PATCH | order (nullable) | The order of the item in the table of contents, starting from 0. If explicitly set to null, the item will be moved to the end of the list. |
| PATCH | slug | The URL slug. |
| PATCH | title | The title of the table of contents. |
| DELETE | recursive | Deletes nested subpages if set to true. |