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": "9BcC0708Cc7aCBbb165FEfbA",
"createdBy": "cabaE98401DB2dAD39C6f1FC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "E8B42Add23aaE7b8b589E8b0",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "F16980BA9aaa16929F009B9B",
"name": "tempor id veniam commodo aliquip",
"description": "A user-defined object to help group documents."
}
]
}
}
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": "edd4Bd3bfA8eC8eBF4f2da40",
"createdBy": "C4C4a4d05312bcf3E59ed0Ac",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "5DB9AD150abBab6F2C6Dca6b",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bCe0a3a0d4d28f7d8A99aEe3",
"name": "ut",
"description": "A user-defined object to help group documents."
},
{
"_id": "6C179F6aFCC0c90dEA0EE0cF",
"name": "voluptate anim irure tempor veniam",
"description": "A user-defined object to help group documents."
},
{
"_id": "3Aac345cDAbA5a33b3E0Dfec",
"name": "dolore sit",
"description": "A user-defined object to help group documents."
},
{
"_id": "ecCAEcEBA376EBeebBDFdbcF",
"name": "veniam",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "sed 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"
]
}