Examples

POST /api/hosts/host1606/puppetclass_ids/invalid_id
{
  "host_class": {}
}
422
{
  "error": {
    "message": "Couldn't find Puppetclass with 'id'=invalid_id"
  }
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
required

ID of host

Validations:

  • Must be a String

id
required

ID of Puppet class

Validations:

  • Must be a String