{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-message-template-attachment-request-schema.json",
  "title": "CreateMessageTemplateAttachmentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-attachments-api-openapi.yml#/components/schemas/CreateMessageTemplateAttachmentRequest",
  "type": "object",
  "properties": {
    "knowledgeBaseId": {
      "type": "string",
      "description": "The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN."
    },
    "messageTemplateId": {
      "type": "string",
      "description": "The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier."
    },
    "contentDisposition": {
      "type": "string",
      "description": "The presentation information for the attachment file."
    },
    "name": {
      "type": "string",
      "description": "The name of the attachment file being uploaded. The name should include the file extension."
    },
    "body": {
      "type": "string",
      "description": "The body of the attachment file being uploaded. It should be encoded using base64 encoding."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."
    }
  },
  "required": [
    "knowledgeBaseId",
    "messageTemplateId",
    "contentDisposition",
    "name",
    "body"
  ]
}