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": "FfF7dC927e4b09CBF5ed3241",
"namespace": {
"type": "project",
"name": "ut",
"accessControl": {
"read": [
"minim mollit consectetur",
"labore dolor"
],
"write": [
"sit consequat qui enim",
"deserunt Duis enim amet",
"sint",
"voluptate ut sit minim dolor"
],
"execute": [
"ullamco non elit",
"incididunt laboris sit voluptate",
"id minim do nostrud",
"dolore sed",
"consectetur eu nisi non"
],
"manage": [
"ad aliqua anim"
]
}
},
"createdBy": "0b7D6D81F566Cb709ce24dEe",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "67186cfA21fB5CE45a7F76EA",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "acFe465df63D8d509E7cd0f5",
"name": "dolore ad reprehenderit ut pariatur"
},
{
"_id": "696BA3Acc5a02ECDf99bf28b",
"name": "occaecat ullamco mollit"
},
{
"_id": "14AEc55645C54dA615F6a5a8",
"name": "qui sunt ut in"
},
{
"_id": "31ac44AFdbda469b25bB4dE1",
"name": "id mollit incididunt in laboris"
}
]
}
}
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": "8F1dc146fC0CdaDf1facfD5D",
"namespace": {
"type": "project",
"name": "mollit ullamco",
"accessControl": {
"read": [
"dolore ipsum",
"Excepteur veniam",
"proident pariatur sint velit nulla",
"dolore"
],
"write": [
"eu dolor",
"voluptate consequat nisi enim",
"anim quis voluptate",
"et cillum",
"qui Excepteur elit do"
],
"execute": [
"dolore Ut sint",
"eiusmod in"
],
"manage": [
"nulla fugiat qui"
]
}
},
"createdBy": "cE09dcf9ABfD9f0C8837ed67",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "f47F5FFD3A8eDFE7eeB2F2Fe",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "D8CaF3ba9F74C6411EDCADfD",
"name": "magna veniam sunt Ut adipisicing"
},
{
"_id": "DBe289fC3e4aC2f1ca7BAD3a",
"name": "amet"
}
]
},
"edit": "Lorem do eu in officia"
}
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"
]
}