Uploads a file as a knowledge source to an agent version.
POST/api/v2/AgentVersion/:agentCode/:agentVersion/knowledge/file
Uploads a file as a knowledge source 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
- multipart/form-data
Body
File binaryrequired
The file to upload as a knowledge source
Description string
Possible values: <= 500 characters
Optional description of the knowledge source
Tags string
Possible values: <= 500 characters
Optional comma-separated tags for the knowledge source
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Knowledge source file uploaded 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
Loading...