Examples

PUT /api/puppetclasses/1018350796
{
  "smart_class_parameter_ids": [],
  "puppetclass": {}
}
200
{
  "created_at": "2018-11-15 19:02:55 UTC",
  "updated_at": "2018-11-15 19:02:55 UTC",
  "id": 1018350796,
  "name": "class12",
  "module_name": "class12",
  "environments": [
    {
      "name": "environment14",
      "id": 687036938
    }
  ],
  "hostgroups": [],
  "smart_variables": [],
  "smart_class_parameters": [
    {
      "parameter": "param50",
      "id": 1018350796
    }
  ]
}

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

id
required

Validations:

  • Must be a String

puppetclass
required

Validations:

  • Must be a Hash

puppetclass[name]
optional

Validations:

  • Must be a String