Uploads an attachment file to the specified Amazon Q in Connect message template. The name of the message template attachment has to be unique for each message template referenced by the <code>$LATEST</code> qualifier. The body of the attachment file should be encoded using base64 encoding. After the file is uploaded, you can use the pre-signed Amazon S3 URL returned in response to download the uploaded file.
post/knowledgeBases/{knowledgeBaseId}/messageTemplates/{messageTemplateId}/attachments
Path parameters
knowledgeBaseIdstring required
The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
messageTemplateIdstring required
The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.
Request body
Response
Success