Hi, @Bowie
I’ve checked the code of the sample and noticed that the device profiles scope hasn’t been updated. In the meantime the code gets reviewed, please change the scope to i:deviceprofiles:* and include the r:locations:*.
Also, please check the next SmartApp example that integrates the SmartApp SDK NodeJS:
Best regards,
Erick.