3 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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"
}
}
respondido hace un año
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años