v1

latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MB
Knowledge Sources

Updates a Knowledge Source

Updates a Knowledge Source in a Knowledge Store. Allows modifying a Source's name, description, status, and metadata.

patch/v2.0/knowledgestores/{knowledgeStoreId}/sources/{sourceId}

Path parameters

knowledgeStoreIdstring required

The Id of the KnowledgeStore

sourceIdstring required

The Id of the KnowledgeSource

Headers

Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Request body

namestring

The name of the KnowledgeSource

descriptionstring

The description about what the knowledge source contains

status'ready' | 'ingesting' | 'disabled'

Example request

{
  "name": "mysource",
  "description": "mysource description",
  "metaData": {
    "tags": [
      "tag1"
    ]
  }
}

Response

Successfully updated knowledge source