Possible to toggle states via http post?


I am using flic buttons in my home and am trying to assign the built-in http post function for triggering ecripts/ switches/ lights.

At the moment I only know about the turn_on and turn_off possibilities and they work perfectly fine.

instead of assigning 2 http posts to 2 flic button presses I would like to save one button press by just toggling the state of a switch instead of explicitly turning on or off.

Is this possible?

nevermind, solved it by trial and error. the api also supports “toggle” :grin: