@wildix/wim-knowledge-base-client > GetDocumentUploadUrlCommand
GetDocumentUploadUrlCommand class
Get a presigned URL for uploading the original file of the document. You must upload the file to this URL using the PUT method.
Signature:
export declare class GetDocumentUploadUrlCommand extends GetDocumentUploadUrlCommand_base
Extends: GetDocumentUploadUrlCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, GetDocumentUploadUrlCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, GetDocumentUploadUrlCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // GetDocumentUploadUrlInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
documentId: "STRING_VALUE", // required
};
const command = new GetDocumentUploadUrlCommand(input);
const response = await client.send(command);
// { // GetDocumentUploadUrlOutput
// uploadUrl: "STRING_VALUE", // required
// };