Skip to main content

Downloads files from URLs and adds them as knowledge sources to an agent version.

POST 

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

Downloads files from URLs and adds them 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 URLs to download and add as knowledge sources.

    files

    object[]

    required

    List of file URLs to download and add as knowledge sources

  • Array [

  • contentUrl stringrequired

    Possible values: non-empty

    The URL from which to download the file

    fileName stringrequired

    Possible values: non-empty

    The name for the file to be stored

    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 source files downloaded and added successfully.

Loading...