Knowledge Sources

Update Knowledge Source

Changed on

Rename the source and/or replace its content by uploading a new file in source (multipart). Replacing content increments revision_number while the id stays stable, and every attached agent's draft picks it up immediately; published versions pin the revision they were published with, so republish each affected agent to put the new content live — that two-step (sync content, republish) is the nightly content-sync recipe.

patch/v1/agent/knowledge-sources/{source_id}

Request

  • Base URL
    https://api.fish.audio
  • URL
    https://api.fish.audio/v1/agent/knowledge-sources/{source_id}
  • Auth
    HTTP bearer

Path parameters

source_idstring required

Request body multipart/form-data

sourcestring binary nullable
namestring nullable
descriptionstring nullable

Response

Request fulfilled, document follows

knowledge_source_idstring required
workspace_idstring required
namestring required
descriptionstring
file_namestring required
size_bytesinteger required
chunk_countinteger required
revision_numberinteger required

Increments every time the content is replaced. Drafts always use the newest revision; published versions pin the revision current at publish time.

created_atstring date-time required
updated_atstring date-time required
contentstring required

The full current text content.

Changes