Summary
Creates a new template document.
Description
Creates a new template document.
Route
POST /automation-studio/templates
Roles
admin
apiwrite
designer
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| template |
object |
yes |
Template entity to create. |
Copied to Clipboard
{
"template": {
"name": "test",
"group": "Sample group",
"command": "show ip br",
"description": "description",
"template": "Value FIRST_WORD (S+)\n\nStart\n ^FIRST_WORD.* -> Record",
"data": "some sample text to match against",
"type": "test",
"_id": "Bde022F4Ea27b438A3a1Bb51",
"createdBy": "AB6aEac34D25B4f83CcaDECA",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "E67a995A5CCcd68d22b66E18",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "EABBf9B80a3fBB58D5d3CCce",
"name": "Excepteur veniam occaecat commodo aliquip"
},
{
"_id": "F9DBbeC2F986C8CA993CCc20",
"name": "consequat quis Lorem aliqua"
}
]
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"template": {
"title": "template",
"$ref": "template"
}
},
"required": [
"template"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| response |
object |
Created template and associated edit URI. |
Copied to Clipboard
{
"created": {
"name": "test",
"group": "Sample group",
"command": "show ip br",
"description": "description",
"template": "Value FIRST_WORD (S+)\n\nStart\n ^FIRST_WORD.* -> Record",
"data": "some sample text to match against",
"type": "test",
"_id": "01D8D8ABD9FD6F9A487CE3B0",
"createdBy": "B32bbdBb1835BA35Cae8dd8A",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4dACdbfaa2f7baEF7584D17F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "ECA2cEdd8ff7b9636A807DFc",
"name": "est elit anim"
}
]
},
"edit": "consectetur cillum minim"
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"description": "Created template and associated edit URI.",
"properties": {
"created": {
"$ref": "template"
},
"edit": {
"type": "string",
"description": "URI to the edit page for the newly created template."
}
},
"required": [
"created",
"edit"
]
}