Examples

PUT /api/hosts/bulk/change_content_source
{
  "hosts_bulk_action": {}
}
404
{
  "displayMessage": "Could not find host resource with id . Potential missing permissions: edit_hosts",
  "errors": [
    "Could not find host resource with id . Potential missing permissions: edit_hosts"
  ]
}

Params

Param name Description
host_ids
required

The ids of the hosts to alter. Hosts not managed by Katello are ignored

Validations:

  • Must be an array of any type

environment_id
required

The id of the lifecycle environment

Validations:

  • Must be a number.

content_view_id
required

The id of the content view

Validations:

  • Must be a number.

content_source_id
required

The id of the content source

Validations:

  • Must be a number.