This was possible before Homey 2.0
even with the correct code you can’t as HomeyScript has not the correct Permission in Homey >= v2.0:
You need:
Required OAuth scopes:
- homey.flow
but only have Readonly as stated in HomeyScript scopes / authorization
o, and BTW: You can from the Web API Playground, and see teh Disable/enable all Apps fe.