3 Answers
- Newest
- Most votes
- Most comments
0
Hi. You've mentioned both things groups and billing groups, but I'm not sure you meant to. I'm pretty sure you just mean Thing groups.
For Thing groups, the equivalent API is AddThingToThingGroup.
The UpdateThingGroup API does not let you change or add the parent group. The parent group can only be specified in CreateThingGroup.
0
Greg called it out (please upvote and accept :) ), but to highlight:
Can I add child thing groups to a thing group through the AWS IoT API? If so, which API can I use?
To add a child ThingGroup to an existing (parent) ThingGroup, use the CreateThingGroup and pass the parent as part of the call (thingGroupName
is in the URI):
POST /thing-groups/thingGroupName HTTP/1.1
Content-type: application/json
{
"parentGroupName": "PARENT_THING_GROUP_NAME_GOES_HERE",
"tags": [
{
"Key": "string",
"Value": "string"
}
],
"thingGroupProperties": {
"attributePayload": {
"attributes": {
"string" : "string"
},
"merge": boolean
},
"thingGroupDescription": "string"
}
}
answered a year ago
Relevant content
- asked 5 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago