Project

General

Profile

Actions

Bug #9352

open

Regression of API host creation bug #7989

Added by Emil Flink over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After upgrading from 1.6.x to 1.7.2 I am facing the exact same issue as described in bug #7989.

Trying to create a host returns error:
"operatingsystem_id is not allowed as nested parameter for hosts. Allowed parameters are hostgroup_id, location_id, organization_id, environment_id"

If any further information is helpful please let me know.

Actions #1

Updated by Emil Flink over 9 years ago

Sorry, apparently my POST request was actually incorrect but correct enough to pass in old versions of Foreman.

I sent my data as: { key: value, key2: value }

When I should have sent: {'host': { key: value, key2: value } }

Actions

Also available in: Atom PDF