Issue working with organization parameters

We'd like to store some organization info in parameters - we are
successfully using hosts parameters.
The parameters are set through the GUI, but the extraction is done using
python-foreman.
Here is the error we get running f.organizations*.*parameters_index(1)

code = 500

reason = Internal Server Error

--------- data received ------------

{

"error": {"message":"undefined method `search_for' for
#<Hash:0x007f258c921cc0>"}

}