3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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"
}
}
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 7 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an