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": "E7eE5b6BCE1f470D8bd7E7bb",
"namespace": {
"type": "project",
"name": "esse elit nostrud est ut",
"accessControl": {
"read": [
"enim",
"Excepteur",
"enim",
"amet irure voluptate mollit ea",
"incididunt minim ullamco Ut culpa"
],
"write": [
"reprehenderit consectetur",
"in",
"laborum officia fugiat"
],
"execute": [
"aute adipisicing ipsum in anim",
"in in est do laboris"
],
"manage": [
"sint aliquip amet consequat"
]
}
},
"createdBy": "06EDc69c7E8AdAA4eabCe1f5",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6D1Aad62eFEC5deFaC8CCb3B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "0ed65d0dcb8bffc6b21F02C2",
"name": "ullamco"
},
{
"_id": "2dbFf2FdEF7A9716cDD41fee",
"name": "nostrud deserunt amet ut dolor"
},
{
"_id": "511A4f51e252EdB7abf2b5Dd",
"name": "dolor Ut"
}
]
}
}
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": "d57232c83dD707a1db4C8Da6",
"namespace": {
"type": "project",
"name": "ut Ut in exercitation",
"accessControl": {
"read": [
"in enim commodo culpa",
"sed ea ad aliqua",
"aliqua commodo est",
"ex enim ut culpa",
"enim Duis"
],
"write": [
"pariatur",
"nostrud adipisicing in"
],
"execute": [
"sit",
"eu"
],
"manage": [
"sed dolore dolor culpa Ut"
]
}
},
"createdBy": "c6c29a5A1aAB1BC9dbaE08C3",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "fa5B0BAAcb2cA1Ac26dBB36D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "E2D8DfC86Baf77e65cfF8E9D",
"name": "nostrud id"
},
{
"_id": "1Dd41897B2E3f382A53fcbFd",
"name": "nostrud do"
}
]
},
"edit": "deserunt laborum aute veniam"
}
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"
]
}