Here you'll find scripts that illustrate how to use the Devices and Device Configurations APIs.
-
Make sure you have node installed, either directly or through a package manager.
-
Install depencies:
npm install
-
Edit the script you want to run. Most will for example have a
const ACCESS_TOKEN = "enter your access token here";
line that you'll need to update with your token. Read through the comments in the script to see if there is more you need to fill in. -
Run the script:
node <script name>
example.js: Enables signage and sets it to nrk.no
for all devices with the tag signage
.
bulk-patch.js: Sets all specified configs on all of the devices that match the specified search criteria. Useful to bulk apply configurations to a large set of devices.