Knowledge

Set knowledge source activation

Activate/deactivate an existing indexed source using sourceId from list_knowledge_sources. Enabling checks quota; asset-only sources return asset_has_no_knowledge_source and must use set_knowledge_asset_sharing. Managed website pages should use set_knowledge_website_selection. Read source detail (includeInactive=true) and usage afterward; activation does not recrawl or repair failed ingestion. Required permission: knowledge:write.

patch/knowledge/sources/{sourceId}/active

Request

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

Path parameters

sourceIdstring required

Copy sourceId from list_knowledge_sources; it belongs to the connected business. Do not derive it from a title, URL or external provider ID.

Request body

activeboolean required

Response

Success

sourceIdstring required
sourceType'text' | 'file' | 'url' required
titlestring
activeboolean required
updatedAtstring date-time
textstring
urlstring
chunkCountinteger required
activeTokensinteger
scope'global' | 'property'
propertyIdstring
propertyNamestring
previewstring
createdAtstring
websiteIdstring
websiteGenerationIdstring
canonicalUrlstring
websiteGenerationState'staging' | 'current' | 'superseded'

Changes

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