Adding Multiple Sensors to Group as Members

Hello, I am collecting PurpleAir data to show outdoor air quality for our utility’s service territory. I have performed a spatial join so that my API call only queries sensors in the service territory, and now have a list of sensors relevant to my collection. I am having trouble assigning these sensors to a group I have created, as it seems like only one input can be completed at a time. Is it possible to pass multiple sensor indexes through to the ‘sensor_index’ parameter on the assign members to group API?

Hi @hfine78, you can only add one sensor to a group at a time. If you have a list of sensor indexes that need to be in a group, you may be able to create a function that will loop through them and add each automatically instead of having to input each unique one manually.