Menu
AWS IoT
Developer Guide

RemoveThingFromThingGroup

Remove the specified thing from the specified group.

Request syntax:

PUT /thing-groups/removeThingFromThingGroup Content-type: application/json { "thingGroupName": "string", "thingGroupArn": "string", "thingName": "string", "thingArn": "string" }

Request Body Parameters:

Name

Type

Req?

Description

thingGroupName

ThingGroupName

no

The group name.

thingGroupArn

ThingGroupArn

no

The group ARN.

thingName

ThingName

no

The name of the thing to remove from the group.

thingArn

ThingArn

no

The ARN of the thing to remove from the group.

Errors:

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

HTTP response code: 400

ThrottlingException

The rate exceeds the limit.

HTTP response code: 429

InternalFailureException

An unexpected error has occurred.

HTTP response code: 500

ResourceNotFoundException

The specified resource does not exist.

HTTP response code: 404

CLI

Synopsis:

aws iot remove-thing-from-thing-group \ [--thing-group-name <value>] \ [--thing-group-arn <value>] \ [--thing-name <value>] \ [--thing-arn <value>] \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ "thingGroupName": "string", "thingGroupArn": "string", "thingName": "string", "thingArn": "string" }

cli-input-json fields:

Name

Type

Description

thingGroupName

string

length max:128 min:1

pattern: [a-zA-Z0-9:_-]+

The group name.

thingGroupArn

string

The group ARN.

thingName

string

length max:128 min:1

pattern: [a-zA-Z0-9:_-]+

The name of the thing to remove from the group.

thingArn

string

The ARN of the thing to remove from the group.

Output:

None

On this page: