Examples

PUT /api/hosts/980190962/packages/install
{
  "packages": [
    "foo"
  ],
  "host_package": {
    "packages": [
      "foo"
    ]
  }
}
202
{
  "id": null,
  "label": null,
  "pending": null,
  "username": null,
  "started_at": null,
  "ended_at": null,
  "state": null,
  "result": null,
  "progress": null,
  "input": null,
  "output": {},
  "humanized": null,
  "cli_example": null,
  "available_actions": {
    "cancellable": null,
    "resumable": null
  }
}

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.

packages
optional

List of package names

Validations:

  • Must be an array of any type

groups
optional

List of package group names (Deprecated)

Validations:

  • Must be an array of any type