Examples

POST /api/hosts/host1605/puppetclass_ids
{
  "puppetclass_id": 281110143,
  "host_class": {
    "puppetclass_id": 281110143
  }
}
200
{
  "host_id": 2,
  "puppetclass_id": 281110143
}

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

puppetclass_id
required

ID of Puppet class

Validations:

  • Must be a String