Forum Discussion
Anonymous
2 years agoAssuming you’re using the .add_device_group() method:
While the documentation states that the method accepts subgroups as part of the post, the underlying api endpoint does not accept it. Go here, then switch over to the model. You’ll see that no part of the posted payload allows for subgroups.
You’ll have to post the parent group, grab the id from the response, then post each of the child groups using the parent group in the parentId field. I had to do the same thing when i was building out my group structure maintainer script.
Related Content
- 2 years ago
- 2 years ago