Project

General

Profile

Actions

Bug #26855

closed

Organization create API requires the org name twice

Added by Evgeni Golov almost 5 years ago. Updated almost 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 #1

Updated by Evgeni Golov almost 5 years ago

This is "just" an issue in the published API doc (as used by apipie-bindings). The server accepts {"organization":{"name":"foo"}} just fine.

Actions #2

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Evgeni Golov
  • Pull request https://github.com/Katello/katello/pull/8122 added
Actions #3

Updated by Evgeni Golov almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by John Mitsch almost 5 years ago

  • Target version set to Katello 3.13.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF