Accessing smart class parameter with API after updateing from Foreman 2.5

Problem:
On Foreman > 2.5 the API URL https://foreman/api/hosts/host/smart_class_parameters dosen’t exist anymore

Expected outcome:

Foreman and Proxy versions:
3.13.0

Foreman and Proxy plugin versions:
foreman-tasks 10.0.1
foreman_ansible 15.0.1
foreman_dhcp_browser 0.1.2
foreman_puppet 8.0.0
foreman_remote_execution 14.0.2
foreman_templates 10.0.1
foreman_webhooks 4.0.0
puppetdb_foreman 6.0.2
Distribution and version:
Red Hat Enterprise Linux release 9.5

I noticed that on our foreman server running version 3.13 im no longer able to change puppet smart class parameters with the api. On a server running Foreman 2.5 I can use https://foreman/api/hosts/host/smart_class_parameters to modify the. I checked the API documentation but all references to smart class parameters are gone. I assume this is because puppet was moved into a plugin. But im not able to find a documentation if and how I can access these parameters now.

Since Foreman 3.0, Puppet integration has been moved to a seperate plugin and during that move, all the API endpoints were moved to https://yourforeman/foreman_puppet/api.
As a general tip: You can access the API doc for all your installed Plugins via https://yourforeman/apidoc.

1 Like

Thanks for the help. Knowing that I can access the API doc on the server itself was very help full.