Project

General

Profile

Actions

Bug #26855

closed

Organization create API requires the org name twice

Added by Evgeni Golov over 5 years ago. Updated over 5 years ago.

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

Description

According to https://theforeman.org/plugins/katello/3.11/api/apidoc/v2/organizations/create.html, to create an organization called "foo", you need to post the following to the server:

{"name":"foo","organization":{"name":"foo"}}

However, plain Foreman does not have this constraint (see https://theforeman.org/api/1.21/apidoc/v2/organizations/create.html) and accepts

{"organization":{"name":"foo"}}
Actions

Also available in: Atom PDF