Examples

POST /api/smart_variables/1018350798/override_values
{
  "override_value": {
    "match": "os=string"
  }
}
201
{
  "created_at": "2019-11-07 08:39:22 UTC",
  "updated_at": "2019-11-07 08:39:22 UTC",
  "id": 1018350797,
  "match": "os=string",
  "value": null,
  "omit": false,
  "use_puppet_default": false
}

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

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[omit]
optional , nil allowed

Foreman will not send this parameter in classification output

Validations:

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