Project

General

Profile

Actions

Bug #20478

closed

POST /api/hosts/bulk/applicable_errata API doc has incorrect URL pointing to installable_errata.html

Added by Nagoor Shaik over 7 years ago. Updated over 6 years ago.

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

Description

API doc incorrect URL redirection for `POST /api/hosts/bulk/applicable_errata API` to installable_erratum.html.

Also the ":applicable_errata" isn't defined in the host_bulk_actions controller

Visiting this page
~~
https://foreman-devel.example.com/apidoc/v2/hosts_bulk_actions/installable_errata.html
~~

has following content
~~~

POST /api/hosts/bulk/applicable_errata
Fetch applicable errata for a host.
Params
Param name Description
organization_id
required

ID of the organization

Validations:

string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
required

Validations:

Hash

included[search]
optional , nil allowed

Search string for hosts to perform an action on

Validations:

String

included[ids]
optional , nil allowed

List of host ids to perform an action on

Validations:

Must be an array of any type

excluded
required

Validations:

Hash

excluded[ids]
optional , nil allowed

List of host ids to exclude and not run an action on

Validations:

Must be an array of any type
~~~

which is incorrect.

Actions

Also available in: Atom PDF