Summary
Updating exisiting template
Description
Updating exisiting template
Route
POST /template_builder/updateTemplate
Roles
admin
other
readonly
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
data |
object |
yes |
Template data |
Copied to Clipboard
{
"data": {
"name": "My Template",
"device": "Device Group A",
"command": "show hostname",
"template": "Value HOSTNAME (.+?)\n\nStart\n ^${HOSTNAME}\\s*$$ -> Record",
"text": "hostname",
"type": "custom",
"_id": "85ea05ea2b88ddcf1cfcc523"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"data": {
"$ref": "templateDocument"
}
},
"required": [
"data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
results |
object |
Updated template data |
Copied to Clipboard
{
"name": "My Template",
"device": "Device Group A",
"command": "show hostname",
"template": "Value HOSTNAME (.+?)\n\nStart\n ^${HOSTNAME}\\s*$$ -> Record",
"text": "hostname",
"type": "custom",
"_id": "9a556bd1e3bea750a6534430"
}