Create a project template
Request
POST https://{hostname}:{port}
/build/rest2/templates
This command takes a JSON request string or file. Use the following template for the request:
{
"active": "Whether or not the project template is
active.",
"build-pre-process": [{
"name": "The name of the Build Pre-Processing property
(quiet-period, merge-period, label-values, stamp-values,
agent-pool, shouldCleanup, pre-condition-script, agent-
pool-prop).",
"value": "The value of the Build Pre-Processing
property"
}],
"description": "The project template description",
"name": "The name of the project template",
"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",
"default-value": "The default value of this 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, Agent Pool)",
"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 project using this template.",
"scripted": "whether or not the value type of the
property is scripted"
}],
"teams": [{
"resourceRoleId": "The id of the resource role",
"teamId": "The id of the team"
}]
}
