Hello everyone, I’m trying to assign a puppet to the host class via the api, but I get an error.
Foreman version 3.6
curl -k -u user:pass -H "Accept: version=2,application/json" \
-H "Content-Type: application/json" -X POST \
-d '{ "puppetclass": { "id":130,"name":"git","module_name":"git" }' \
https://foreman.domain.com/api/hosts/308
Tell me how to do it correctly ?