Agents Platform

Update File Document

Changed on

Update the source file of a file document. The document name, content, and metadata are updated to reflect the new file. Any manual content edits will be overwritten.

patch/v1/convai/knowledge-base/{documentation_id}/update-file

Request

  • Base URL
    https://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.elevenlabs.io/v1/convai/knowledge-base/{documentation_id}/update-file
  • Auth
    none declared

Path parameters

documentation_idstring required

The id of a document from the knowledge base. This is returned on document addition.

Example:21m00Tcm4TlvDq8ikWAM

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body multipart/form-data

filestring binary required

Documentation that the agent will have access to in order to interact with users.

Response

Successful Response

OR
OR
OR

Example response

{
  "access_info": {
    "access_source": "creator",
    "creator_email": "john.doe@example.com",
    "creator_name": "John Doe",
    "is_creator": true,
    "role": "admin"
  }
}

Changes

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • info

      response property oneOf[subschema #1: GetKnowledgeBaseURLResponseModel]/auto_sync_info/anyOf[subschema #1: AutoSyncInfo]/auto_discover deprecated

    • info

      response property oneOf[subschema #2: GetKnowledgeBaseFileResponseModel]/auto_sync_info/anyOf[subschema #1: AutoSyncInfo]/auto_discover deprecated

    • info

      response property oneOf[subschema #4: GetKnowledgeBaseFolderResponseModel]/auto_sync_info/anyOf[subschema #1: AutoSyncInfo]/auto_discover deprecated