Project

General

Profile

Actions

Bug #4461

closed

The Associations section for the API has some inconsistencies

Added by David Davis about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 #1

Updated by Dominic Cleal about 10 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

Also available in: Atom PDF