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

# POST /thing-groups/{thingGroupName}

`POST /thing-groups/{thingGroupName}`

Create a thing group.

This is a control plane operation. See [Authorization](https://docs.aws.amazon.com/iot/latest/developerguide/iot-authorization.html) for information about authorizing control plane actions.

Requires permission to access the [CreateThingGroup](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
  - `parentGroupName` string — The name of the parent thing group.
  - `thingGroupProperties` object — 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>
  - `tags` Tag[] — Metadata which can be used to manage the thing group.
    - `Key` string, required — The tag's key.
    - `Value` string — The tag's value.

## Response `200`

Success

- CreateThingGroupResponse
  - `thingGroupName` string — The thing group name.
  - `thingGroupArn` string — The thing group ARN.
  - `thingGroupId` string — The thing group ID.

## Other responses

- `480` — InvalidRequestException
- `481` — ResourceAlreadyExistsException
- `482` — ThrottlingException
- `483` — InternalFailureException

---

[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)
