Maker API, how would I issue the setEffect command on my Nanoleaf light?

(Fake token) but I can turn my Nanoleaf light on or off using the following:

I basically want to issue this command though, just wondering the syntax on the URL to do so:

I tried this but it says device not found or not authorized to send that command:

This, however, does work to cycle through effects:

Appreciate any help, thanks!

Instead of setEffect=4, I think you want setEffect/4 - making the command parameter part of the path