Examples

POST /api/hosts/host2667/puppetclass_ids
{
  "puppetclass_id": "invalid_id",
  "host_class": {
    "puppetclass_id": "invalid_id"
  }
}
404
{
  "error": {
    "message": "Resource host_class not found by id ''"
  }
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

host_id
required

ID of host

Validations:

  • Must be a String

puppetclass_id
required

ID of Puppet class

Validations:

  • Must be a String