Uploads a file for a specific agent using multipart/form-data.
POST/api/v2/KnowledgeFile/upload/:agentCode
deprecated
This endpoint is deprecated. Use POST api/v{version}/AgentVersion/{agentCode}/{agentVersion}/knowledge/file instead.
Request
Path Parameters
agentCode stringrequired
The unique code that identifies the agent.
Query Parameters
culture string
Use this param to override the culture of the response. Options: - en (default) - es
- multipart/form-data
Body
Array [
]
ContentType string
ContentDisposition string
Headers
object
property name*
string[]
string
Length int64
Name string
FileName string
Responses
- 200
- 400
- 401
- 403
- 500
Success
There was a validation error. Please check your request data.
- application/json
- Schema
- Example (from schema)
Schema
message stringnullable
errors
object
nullable
property name* string
{
"message": "string",
"errors": {}
}
The user is unauthorized or the session expired
The user does not have permission
There was an unexpected error
Loading...