REST api to edit template or host

Is there any REST api to edit a specific config_template or specific hosts.
If I try to connect in POST at url (http://myforeman/hosts/myhost/edit) The
browser give me an http error 500.
How can I solve this problem? And why it give me error 500?

Thanks in advance.

I solved it. My questions was stupid. I check for PUT api, in particoular
for "PUT /api/config_templates/template_name" and I have found this:

config_template[template_combinations_attributes]
optional

Array of template combinations (hostgroup_id, environment_id)

Value: Must be ArrayAnd now it works correctly.

··· Il giorno martedì 7 maggio 2013 12:33:07 UTC+2, Euclideo ha scritto: > > Is there any REST api to edit a specific config_template or specific > hosts. If I try to connect in POST at url ( > http://myforeman/hosts/myhost/edit) The browser give me an http error 500. > How can I solve this problem? And why it give me error 500? > > Thanks in advance.