How we can control cayenne widgets with APIs

Hi,
I am new here, I want to control on board led of Arduino uno with cayenne API, like ON/OFF operations.
Thanks in advance