Skip to main content

Adds file references as knowledge sources to an agent version.

POST 

/api/v2/AgentVersion/:agentCode/:agentVersion/knowledge/file/reference

Adds file references as knowledge sources to an agent version.

Request

Path Parameters

    agentCode stringrequired

    The code of the agent.

    agentVersion int32required

    The version number of the agent.

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The file references to add as knowledge sources.

    fileReferences

    object[]

    required

    List of file references to add as knowledge sources

  • Array [

  • fileId uuidrequired

    The ID of the file to reference as a knowledge source

    metadata

    object

    description stringnullable

    Possible values: <= 500 characters

    Description of the knowledge source

    tags stringnullable

    Possible values: <= 500 characters

    Comma-separated tags for the knowledge source

  • ]

Responses

Knowledge sources added successfully.

Loading...