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": "4CdfcC46BCfEC21D3E5fBDfa",
"createdBy": "dc0fbAca9D728AFc695DC919",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "804BA3dcb9aBCfFd47cbEEc6",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "d6B8ABcB3F3c6a6DAc0ceDf5",
"name": "ex reprehenderit"
},
{
"_id": "c4D46b35b61A63dEE1ecD9bd",
"name": "ad velit sint"
},
{
"_id": "204F8Da3Bc06A419b8DaD825",
"name": "ea"
},
{
"_id": "3dcc73A72fDA14fbde69B1BB",
"name": "culpa irure"
}
]
}
}
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": "0aF443D1034029aafAcD042A",
"createdBy": "ffc3Cbf341F0Ef2Ba4538eCF",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8e6b8BDddC4b46e6a5BE5ff4",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "4Cc5b836fcaFBD66205EA7de",
"name": "velit ullamco dolore quis mollit"
},
{
"_id": "Eb610EebBCAc3d6dFAA856f5",
"name": "reprehenderit in culpa amet sed"
},
{
"_id": "7eF9A04dcDa6e83f1b3b6CCc",
"name": "sunt occaecat velit"
},
{
"_id": "F5EEFf1AeA86C5BDA7144f9A",
"name": "sit aliquip ullamco nisi culpa"
}
]
},
"edit": "eiusmod Ut Lorem laboris"
}
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"
]
}