REST API how to add/delete hosts to/from a host group

What doc are you using? POST to create a rule is documented.
Just go to the i on the top left corner of your checkmk instance and click on REST API documentation