{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-update-dynamic-thing-group-request-schema.json",
  "title": "UpdateDynamicThingGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-dynamic-thing-groups-api-openapi.yml#/components/schemas/UpdateDynamicThingGroupRequest",
  "type": "object",
  "properties": {
    "thingGroupName": {
      "type": "string",
      "description": "The name of the dynamic thing group to update."
    },
    "thingGroupProperties": {
      "$ref": "#/$defs/ThingGroupProperties"
    },
    "expectedVersion": {
      "type": "integer",
      "description": "The expected version of the dynamic thing group to update."
    },
    "indexName": {
      "type": "string",
      "description": "The dynamic thing group index to update. Currently one index is supported: AWS_Things."
    },
    "queryString": {
      "type": "string",
      "description": "The dynamic thing group search query string to update."
    },
    "queryVersion": {
      "type": "string",
      "description": "The dynamic thing group query version to update. Currently one query version is supported: \"2017-09-30\". If not specified, the query version defaults to this value."
    }
  },
  "required": [
    "thingGroupName",
    "thingGroupProperties"
  ],
  "$defs": {
    "AttributePayload": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A JSON string containing up to three key-value pair in JSON format. For example: {\\\"attributes\\\":{\\\"string1\\\":\\\"string2\\\"}}"
        },
        "merge": {
          "type": "boolean",
          "description": "Specifies whether the list of attributes provided in the AttributePayload is merged with the attributes stored in the registry, instead of overwriting them. To remove an attribute, call UpdateThing with an empty attribute value. The merge attribute is only valid when calling UpdateThing or UpdateThingGroup."
        }
      }
    },
    "ThingGroupProperties": {
      "type": "object",
      "properties": {
        "thingGroupDescription": {
          "type": "string",
          "description": "The thing group description."
        },
        "attributePayload": {
          "$ref": "#/$defs/AttributePayload"
        }
      }
    }
  }
}