Uploads a file for a specific agent using a URL.
POST/api/v2/KnowledgeFile/upload
This endpoint is deprecated. Use POST api/v{version}/AgentVersion/{agentCode}/{agentVersion}/knowledge/file/url instead. Subtitle files (.srt and .vtt) are accepted and read as plain text.
Request
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
Request object containing the agent code, content URL, and optional file name.
Possible values: non-empty
Identifier of the agent.
Possible values: non-empty
The url provides the knowledge file to be uploaded
Possible values: non-empty
Name by which the uploaded file will be named
Body
Request object containing the agent code, content URL, and optional file name.
Possible values: non-empty
Identifier of the agent.
Possible values: non-empty
The url provides the knowledge file to be uploaded
Possible values: non-empty
Name by which the uploaded file will be named
Body
Request object containing the agent code, content URL, and optional file name.
Possible values: non-empty
Identifier of the agent.
Possible values: non-empty
The url provides the knowledge file to be uploaded
Possible values: non-empty
Name by which the uploaded file will be named
Responses
- 200
- 400
- 401
- 403
- 500
OK
There was a validation error. Please check your request data.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
The user is unauthorized or the session expired
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The user does not have permission
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
There was an unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}