API method to update Appkey?

We have a script to bulk provision devices in an application via the REST API “/api/devices/${deveui}/keys” path, which works well. Unfortunately, today the script was executed for a new group of about 100 devices using an old appkey, and the devices will not join because of this. It doesn’t appear the PUT method is available for the device API…is there any way to bulk-update the appkeys to rectify this? I can’t find any documentation about available REST methods on this.

You could call the delete method/endpoint follow by re-creating it.



Edit: My bad. Use the Update method.

Yes what @bconway would be the easiest way.

Can’t you use the UpdateKeys method: Protocol documentation - ChirpStack open-source LoRaWAN® Network Server documentation?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.