Knowledge

Add text knowledge

Create or replace a text knowledge source. To edit, read get_knowledge_source(includeInactive=true), then pass its text sourceId with the complete replacement text; omitted sourceId uses existing deterministic text ingestion identity. Never use a file/URL/website ID to edit text. Creation/replacement embeds content and can store it inactive on quota; read result active/quotaExceeded and follow get_knowledge_source/get_knowledge_usage. Reconcile sources after ambiguous failures; do not invent a replacement ID. Required permission: knowledge:write.

post/knowledge/text

Request

  • Base URL
    https://platform-api.visitoai.com/m2m/v1
  • Auth
    HTTP bearer

Request body

textstring required
titlestring
sourceIdstring

Example request

{
  "title": "Store hours",
  "text": "Our store is open Monday through Friday, from 9 AM to 6 PM."
}

Response

Success

sourceIdstring
chunksinteger
createdboolean
activeboolean
quotaExceededboolean
quotaobject

Changes

No recorded changes to this operation across all 1 revision of this API.