Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt

Use this file to discover all available pages before exploring further.

The Edit Article page (/settings/knowledge-base/:id) is the editor for knowledge base articles, supporting both creation (via the new ID) and modification of existing articles, with save and publish workflows.

Overview

The route requires pf.ai_skills.view. The page reads :id from useParams — when id === 'new', it operates in create mode (no pre-fetch); otherwise it calls useKnowledgeArticle to load the existing article. Loading state shows a full-page skeleton. Mutations are handled by useCreateKnowledgeArticle, useUpdateKnowledgeArticle, and usePublishKnowledgeArticle. The editor component KnowledgeArticleEditor is responsible for the form UI and exposes save, publish, and cancel actions. On save in create mode, the new article’s ID is returned and navigation goes to the edit URL for that article. On cancel, the editor navigates back to the knowledge base list (/settings/knowledge-base).

Who it’s for

Requires permission pf.ai_skills.view.

Before you start

  • You must hold pf.ai_skills.view.
  • Navigate from the Knowledge Base list page (/settings/knowledge-base) to create or edit articles.

Steps

1

Create a new article

Navigate to /settings/knowledge-base/new. The editor opens with empty fields.
2

Edit an existing article

Navigate to /settings/knowledge-base/:id. The editor pre-fills with the article’s existing content.
3

Fill in the article content

Use KnowledgeArticleEditor to write the article title and body content.
4

Save the article

Click Save to persist the draft. In create mode, the URL updates to the new article’s edit URL.
5

Publish the article

Click Publish to make the article available. This calls usePublishKnowledgeArticle.
6

Cancel editing

Click Cancel to discard unsaved changes and return to the knowledge base list.

Platform Foundation

Platform Foundation overview.

Governance & parity

Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or billing advice. Verify against your organization’s policies and applicable regulations before using it for clinical, compliance, or billing decisions. Protected health information (PHI) shown in the product is governed by your tenant’s access controls and is never exposed in this documentation.
  • src/routes/platform.tsx
  • src/platform/knowledge/pages/KnowledgeArticleEditPage.tsx
  • src/platform/knowledge/hooks/use-knowledge-articles.ts