---
title: "PATCH /dynamic-thing-groups/{thingGroupName}"
method: PATCH
path: "/dynamic-thing-groups/{thingGroupName}"
---

# PATCH /dynamic-thing-groups/{thingGroupName}

`PATCH /dynamic-thing-groups/{thingGroupName}`

Updates a dynamic thing group.

Requires permission to access the [UpdateDynamicThingGroup](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `thingGroupName` string, required

## Request body

- object
  - `thingGroupProperties` object, required — Thing group properties.
    - `thingGroupDescription` string — The thing group description.
    - `attributePayload` object — The thing group attributes in JSON format.
      - `attributes` object — <p>A JSON string containing up to three key-value pair in JSON format. For example:</p> <p> <code>{\"attributes\":{\"string1\":\"string2\"}}</code> </p>
      - `merge` boolean — <p>Specifies whether the list of attributes provided in the <code>AttributePayload</code> is merged with the attributes stored in the registry, instead of overwriting them.</p> <p>To remove an attribute, call <code>UpdateThing</code> with an empty attribute value.</p> <note> <p>The <code>merge</code> attribute is only valid when calling <code>UpdateThing</code> or <code>UpdateThingGroup</code>.</p> </note>
  - `expectedVersion` integer — The expected version of the dynamic thing group to update.
  - `indexName` string — <p>The dynamic thing group index to update.</p> <note> <p>Currently one index is supported: <code>AWS_Things</code>.</p> </note>
  - `queryString` string — The dynamic thing group search query string to update.
  - `queryVersion` string — <p>The dynamic thing group query version to update.</p> <note> <p>Currently one query version is supported: "2017-09-30". If not specified, the query version defaults to this value.</p> </note>

## Response `200`

Success

- UpdateDynamicThingGroupResponse
  - `version` integer — The dynamic thing group version.

## Other responses

- `480` — InvalidRequestException
- `481` — VersionConflictException
- `482` — ThrottlingException
- `483` — InternalFailureException
- `484` — ResourceNotFoundException
- `485` — InvalidQueryException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/versions/deef5c4b09f0/schema)
