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": "89011dfFAD7AccE54744B3BA",
"namespace": {
"type": "project",
"name": "sint cillum Lorem reprehenderit",
"accessControl": {
"read": [
"elit quis tempor culpa",
"sit ex minim",
"eu aliquip pariatur officia proident"
],
"write": [
"cillum sunt sed pariatur",
"id anim magna ut proident"
],
"execute": [
"non sunt"
],
"manage": [
"ea proident veniam magna",
"sit eu",
"occaecat officia nostrud"
]
}
},
"createdBy": "789eAee7Ce651406bD5756e0",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "58eF49DF9CB2DDE6259c52d3",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "AeBf7d706306Ed406AD23D1f",
"name": "voluptate sed velit"
},
{
"_id": "C8b6c8568b0C05b08FF2f639",
"name": "occaecat"
},
{
"_id": "3c2C49F123ec835Fca3Dd936",
"name": "quis reprehenderit nisi dolore"
},
{
"_id": "c76a1ADA0B7Eb63aEF8Cd5ba",
"name": "adipisicing occaecat dolore et"
}
]
}
}
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": "9ef0F4A0DedD3f64bDc8acB1",
"namespace": {
"type": "project",
"name": "adipisicing",
"accessControl": {
"read": [
"reprehenderit magna id nisi"
],
"write": [
"non quis",
"Lorem eu fugiat amet"
],
"execute": [
"dolor nostrud dolore exercitation sed",
"sed velit"
],
"manage": [
"amet reprehenderit",
"nulla"
]
}
},
"createdBy": "d3edC78e061F0de5bad1c5E7",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "BDAbEC7c69ddea7656B4CabC",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "FFB2f5E79a0bcEd781C15Aeb",
"name": "eu consectetur do velit"
},
{
"_id": "6c3e1deDEeCDC5DBeF0FAB78",
"name": "laboris"
},
{
"_id": "1CDb6d599dDba3Fd3aafe69B",
"name": "esse reprehenderit adipisicing"
}
]
},
"edit": "fugiat aute velit non"
}
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"
]
}