Group Switch for API

Hello,

I would like to group switches together but be able to activate them, as a switch, through the API, is this possible?

For example:
group:
onetwo:
- switch.one
- switch.two

then in the API run
http://myserver/api/switch/turn_on
and then try to turn on switch.onetwo

Is this possible?

Been trying to figure it out.

Sorry, forgot to mention, the combined switch should be hidden, I just expose the individual switches in the front end.

You can use homeassistant/turn_on to turn on a group.
E.g. a group of switches and lights.

Thanks!

Easy enough solution!