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
Updated by Dominic Cleal almost 11 years ago
- Project changed from Foreman to Website
- Category deleted (
API) - Status changed from New to Closed
- Target version set to 1.9.1
- % Done changed from 0 to 100
Fixed in https://github.com/theforeman/theforeman.org/pull/184. Don't worry about redmine issues for the website unless you don't intend to address it immediately, a PR's good enough :)
Actions