Update a source config template
Request
PUT https://{hostname}:{port}
/build/rest2/sourceTemplates/{id}
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | true | The identifier to use when looking up a source config. This can be the name or ID of the source config template |
This command takes a JSON request string or file. Use the following template for the request:
{
"description": "The source config template description",
"name": "The name of the source config template",
"plugin-properties": [{
"name": "The name of the plugin property",
"value": "The value of the plugin property"
}],
"properties": [{
"allowed-values": "The values users are allowed to
select for this property. Separate each value by entering
it on its own line if property display-type is Multi-
Select or Select",
"allowedValues": "The values users are allowed to
select for this property. Separate each value by entering
it on its own line if property display-type is Multi-
Select or Select",
"allowedValuesScript": "The beanshell script to
determine the allowed values to be selected from if
property display-type is Multi-Select or Select",
"default-value": "The default value of this property.",
"defaultValueCheckbox": "The default value for the
property when the property's display-type is Checkbox",
"defaultValueText": "The default value for the
property when the property's display-type is Text Area",
"defaultValueTextArea": "The default value of the
property when the property's display-type is Text Area",
"defaultValues": "The default value of the property.",
"description": "The description of the property",
"display-type": "The display type of the property
(Text, Select, Checkbox, Multi-Select, Text Area, Text
(secure), Integration Plugin)",
"job": "The id of the job when the property is a Job
Execution property",
"label": "A label for this property shown when
prompting users for value. (Leave blank to use the name as
the Label)",
"name": "The name of the property",
"required": "Whether or not the value of the property
is required when creating a source config using this
template.",
"scripted": "Whether or not the value type of the
property is scripted",
"valueType": "The value type of the property
(scripted, defined, jobExecution)"
}],
"work-dir-script": "The id of working directory script"
}
