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
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 references to add as knowledge sources.
Array [
]
fileReferences
object[]
required
List of file references to add as knowledge sources
The ID of the file to reference as a knowledge source
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 references to add as knowledge sources.
Array [
]
fileReferences
object[]
required
List of file references to add as knowledge sources
The ID of the file to reference as a knowledge source
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 references to add as knowledge sources.
Array [
]
fileReferences
object[]
required
List of file references to add as knowledge sources
The ID of the file to reference as a knowledge source
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 sources added successfully.
If the request is invalid or the version is not in DRAFT status.
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