POST /api/templates/1007981704-report_template72/template_inputs
{
"template_input": {
"name": "is_potato",
"input_type": "user",
"options": [
"true",
"false"
]
}
}
201
{
"template_id": 1007981704,
"fact_name": null,
"variable_name": null,
"puppet_parameter_name": null,
"puppet_class_name": null,
"description": null,
"required": false,
"id": 3,
"name": "is_potato",
"input_type": "user",
"options": [
"true",
"false"
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
template_id required |
Validations:
|
|
template_input required |
Validations:
|
|
template_input[name] required |
Input name Validations:
|
|
template_input[description] optional , nil allowed |
Input description Validations:
|
|
template_input[required] optional , nil allowed |
Input is required Validations:
|
|
template_input[advanced] optional , nil allowed |
Input is advanced Validations:
|
|
template_input[input_type] required |
Input type Validations:
|
|
template_input[fact_name] optional , nil allowed |
Fact name, used when input type is fact Validations:
|
|
template_input[variable_name] optional , nil allowed |
Variable name, used when input type is variable Validations:
|
|
template_input[puppet_class_name] optional , nil allowed |
Puppet class name, used when input type is puppet_parameter Validations:
|
|
template_input[puppet_parameter_name] optional , nil allowed |
Puppet parameter name, used when input type is puppet_parameter Validations:
|
|
template_input[options] optional , nil allowed |
Selectable values for user inputs Validations:
|