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

Thanks for the quick response, can you point me to the documentation for this, I cannot find anything in the REST API docs that allows me to create rules?..or have I lost the plot :rofl: