Examples

POST /api/config_groups
{
  "config_group": {
    "name": "config-group",
    "puppetclass_ids": [
      980190962,
      281110143
    ]
  }
}
201
{
  "created_at": "2019-02-20 13:22:07 UTC",
  "updated_at": "2019-02-20 13:22:07 UTC",
  "id": 980190963,
  "name": "config-group",
  "puppetclasses": [
    {
      "id": 980190962,
      "name": "base",
      "module_name": "base"
    },
    {
      "id": 281110143,
      "name": "vim",
      "module_name": "vim"
    }
  ]
}

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

config_group
required

Validations:

  • Must be a Hash

config_group[name]
required

Validations:

  • Must be a String

config_group[puppetclass_ids]
optional , nil allowed

Validations:

  • Must be an array of any type