{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-update-quick-response-request-schema.json",
  "title": "UpdateQuickResponseRequest",
  "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/UpdateQuickResponseRequest",
  "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."
    },
    "quickResponseId": {
      "type": "string",
      "description": "The identifier of the quick response."
    },
    "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 quick response written in plain text. Use application/x.quickresponse;format=markdown for quick response written in richtext."
    },
    "groupingConfiguration": {
      "$ref": "#/$defs/GroupingConfiguration"
    },
    "removeGroupingConfiguration": {
      "type": "boolean",
      "description": "Whether to remove the grouping configuration of the quick response."
    },
    "description": {
      "type": "string",
      "description": "The updated description of the quick response."
    },
    "removeDescription": {
      "type": "boolean",
      "description": "Whether to remove the description from the quick response."
    },
    "shortcutKey": {
      "type": "string",
      "description": "The shortcut key of the quick response. The value should be unique across the knowledge base."
    },
    "removeShortcutKey": {
      "type": "boolean",
      "description": "Whether to remove the shortcut key of the quick response."
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether the quick response is active."
    },
    "channels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Connect Customer contact channels this quick response applies to. The supported contact channel types include Chat."
    },
    "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"
    }
  },
  "required": [
    "knowledgeBaseId",
    "quickResponseId"
  ],
  "$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."
    }
  }
}