{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-quick-response-request-schema.json",
  "title": "CreateQuickResponseRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-quickresponses-api-openapi.yml#/components/schemas/CreateQuickResponseRequest",
  "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."
    },
    "name": {
      "type": "string",
      "description": "The name of the quick response."
    },
    "content": {
      "$ref": "#/$defs/QuickResponseDataProvider"
    },
    "contentType": {
      "type": "string",
      "description": "The media type of the quick response content. Use application/x.quickresponse;format=plain for a quick response written in plain text. Use application/x.quickresponse;format=markdown for a quick response written in richtext."
    },
    "groupingConfiguration": {
      "$ref": "#/$defs/GroupingConfiguration"
    },
    "description": {
      "type": "string",
      "description": "The description of the quick response."
    },
    "shortcutKey": {
      "type": "string",
      "description": "The shortcut key of the quick response. The value should be unique across the knowledge base."
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether the quick response is active."
    },
    "channels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Connect Customer channels this quick response applies to."
    },
    "language": {
      "type": "string",
      "description": "The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW"
    },
    "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."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource."
    }
  },
  "required": [
    "knowledgeBaseId",
    "name",
    "content"
  ],
  "$defs": {
    "GroupingConfiguration": {
      "type": "object",
      "properties": {
        "criteria": {
          "type": "string",
          "description": "The criteria used for grouping Amazon Q in Connect users. The following is the list of supported criteria values. RoutingProfileArn: Grouping the users by their Amazon Connect routing profile ARN. User should have SearchRoutingProfile and DescribeRoutingProfile permissions when setting criteria to this value."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of values that define different groups of Amazon Q in Connect users. When setting criteria to RoutingProfileArn, you need to provide a list of ARNs of Connect Customer routing profiles as values of this parameter."
        }
      }
    },
    "QuickResponseDataProvider": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string",
          "description": "The content of the quick response."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}