Skip to main content

Uploads a file for a specific agent using a file Id.

POST 

/api/v2/KnowledgeFile/upload/:agentCode/file

deprecated

This endpoint is deprecated. Use POST api/v{version}/AgentVersion/{agentCode}/{agentVersion}/knowledge/file/reference instead. Subtitle files (.srt and .vtt) are accepted and read as plain text.

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

Body

Request object containing the file Id.

    fileId uuidrequired

    Identifier of the file.

Responses​

OK

Loading...