PUT /api/templates/1007981717-report_template14/template_inputs/4
{
"template_input": {
"name": "blah"
}
}
200
{
"id": 4,
"name": "blah",
"required": false,
"input_type": "user",
"fact_name": null,
"variable_name": null,
"puppet_class_name": null,
"puppet_parameter_name": null,
"description": null,
"template_id": 1007981717,
"created_at": "2020-05-20T13:20:01.999Z",
"updated_at": "2020-05-20T13:20:02.014Z",
"options": null,
"advanced": false,
"value_type": "plain",
"resource_type": null,
"default": null,
"hidden_value": false
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
template_id required |
Validations:
|
|
id required |
Validations:
|
|
template_input required |
Validations:
|
|
template_input[name] optional |
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] optional |
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:
|
|
template_input[default] optional , nil allowed |
Default value for user input Validations:
|
|
template_input[hidden_value] optional , nil allowed |
The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords Validations:
|
|
template_input[value_type] optional , nil allowed |
Value type, defaults to plain Validations:
|
|
template_input[resource_type] optional , nil allowed |
For values of type search, this is the resource the value searches in Validations:
|