Octoprint control system menu

I use Octoprint (a software to control a 3D printer). Within the octoprint UI it is possible to turn on/off the print using the system dropdown menu.

It would be great to be able to use these commands as a switch in home assistant.
Did someone here already to this? It looks liek there is not a weblink to that command (java).

Is there a way to do this?

Menu looks like this:

Unbenannt