Actions
Bug #4461
closedThe Associations section for the API has some inconsistencies
Description
Example:
To update an association for an object that contains a collection of other objects, there are a few options. First you can set the ids:
$ curl -k -u admin:changeme -H "Accept: version=2,application/json" \
-H "Content-Type: application/json" -X POST \
-d '{ "host_names": ["enel.first", "celeborni.first", "elwe.first"] }' \
https://foreman.example.com/api/hostgroups/telerin
Actions