How to modify actuator using API

Hi everyone, I wonder if is possible to modify an actuator (a simple LED for instance) using API. I could red data from my sensors and print it on another website, and now I need to interact via the API to a nodemcu and change the value of a LED.

Is a straighforward way to do this?

Thanks,

HI, yes sure you may access the device’s resources by the api.

Check the swagger documentation:
https://console.thinger.io/swagger/#/Devices

Hope this helps.

Hi, thank you EGA, but not sure how to do it.

For example, I have a resource “led” which is the BUILT_IN led of Arduino, I can turn on/off on the API page, but I can’t realize how to create the url to avoid the interface and turning on/of only via url. Any suggestion? Thanks.

Hi, no worries

Check this:

Hope this helps