Hi everyone,
I work on a project that uses the Particle Cloud API. For the past few months, we used devices without Products that could be easily pinged using the devices endpoint and an API key generated here: Particle Console | Build your connected product
$ curl https://api.particle.io/v1/devices/0123456789abcdef01234567/ping \
-X PUT \
-d access_token=1234
Now we have multiple Products in Particle and we still want a single place in our application where we can ping all the devices. So let’s say we get the :productIdOrSlug
for each device and use the following API call:
$ curl https://api.particle.io/v1/products/:productIdOrSlug/devices/0123456789abcdef01234567/ping \
-X PUT \
-d access_token=1234
The problem is that we get a “Permission denied” error when using the global API key.
{"error"=>"invalid_scope", "error_description"=>"Permission denied"}
We have around 5 products and hundreds of devices. Is there a way to ping devices without having to create 5 API keys for each product?