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
The code of the agent.
The version number of the agent.
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
The file URLs to download and add as knowledge sources.
Array [
]
files
object[]
required
List of file URLs to download and add as knowledge sources
Possible values: non-empty
The URL from which to download the file
Possible values: non-empty
The name for the file to be stored
metadata
object
Possible values: <= 500 characters
Description of the knowledge source
Possible values: <= 500 characters
Comma-separated tags for the knowledge source
Body
The file URLs to download and add as knowledge sources.
Array [
]
files
object[]
required
List of file URLs to download and add as knowledge sources
Possible values: non-empty
The URL from which to download the file
Possible values: non-empty
The name for the file to be stored
metadata
object
Possible values: <= 500 characters
Description of the knowledge source
Possible values: <= 500 characters
Comma-separated tags for the knowledge source
Body
The file URLs to download and add as knowledge sources.
Array [
]
files
object[]
required
List of file URLs to download and add as knowledge sources
Possible values: non-empty
The URL from which to download the file
Possible values: non-empty
The name for the file to be stored
metadata
object
Possible values: <= 500 characters
Description of the knowledge source
Possible values: <= 500 characters
Comma-separated tags for the knowledge source
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Knowledge source files downloaded and added successfully.
If the request is invalid, the version is not in DRAFT status, or file validation fails.
The user is unauthorized or the session expired
The user does not have permission
If the agent or version is not found.
There was an unexpected error