Examples

POST /api/hosts/host158/parameters
{
  "parameter": {
    "name": "parameter2",
    "value": "X"
  }
}
201
{
  "priority": 70,
  "created_at": "2018-11-16 10:02:48 UTC",
  "updated_at": "2018-11-16 10:02:48 UTC",
  "id": 767575240,
  "name": "parameter2",
  "value": "X"
}

Params

Param name Description
host_id
optional

ID of host

Validations:

  • Must be a String

hostgroup_id
optional

ID of host group

Validations:

  • Must be a String

domain_id
optional

ID of domain

Validations:

  • Must be a String

operatingsystem_id
optional

ID of operating system

Validations:

  • Must be a number.

location_id
optional

ID of location

Validations:

  • Must be a String

organization_id
optional

ID of organization

Validations:

  • Must be a String

subnet_id
optional

ID of subnet

Validations:

  • Must be a String

parameter
required

Validations:

  • Must be a Hash

parameter[name]
required

Validations:

  • Must be a String

parameter[value]
required

Validations:

  • Must be a String

parameter[parameter_type]
required

Type of value

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.