Examples

POST /api/smart_class_parameters/1018350796/override_values
{
  "override_value": {
    "value": "xyz=10"
  }
}
500
{
  "error": {
    "message": "Validation failed: Match can't be blank, Match is invalid"
  }
}

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

smart_variable_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

smart_class_parameter_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

override_value
required

Validations:

  • Must be a Hash

override_value[match]
required

Override match

Validations:

  • Must be a String

override_value[value]
optional , nil allowed

Override value, required if omit is false

Validations:

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

override_value[use_puppet_default]
optional , nil allowed

Deprecated, please use omit

Validations:

  • Must be one of: true, false, 1, 0

override_value[omit]
optional , nil allowed

Foreman will not send this parameter in classification output, replaces use_puppet_default

Validations:

  • Must be one of: true, false, 1, 0