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": "4fA5142f4E4f1390a1E1A1ed",
"namespace": {
"type": "project",
"name": "do sint nulla Ut eu",
"accessControl": {
"read": [
"id ad",
"id",
"ex sit"
],
"write": [
"est occaecat commodo adipisicing velit",
"aute in",
"anim eiusmod",
"in"
],
"execute": [
"ipsum reprehenderit magna",
"anim enim est cupidatat",
"Excepteur in",
"esse eiusmod"
],
"manage": [
"ut culpa pariatur velit",
"ut"
]
}
},
"createdBy": "637bcCA5CC83eB47FA3Add19",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "CFAF7280b171A32913DBCB4F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "7FB8Ac85e2562EdA50Dcc4D4",
"name": "ea consequat mollit"
}
]
}
}
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": "a21e2da5DA339e78970F0be8",
"namespace": {
"type": "project",
"name": "dolore",
"accessControl": {
"read": [
"quis ipsum est officia",
"voluptate aliquip quis anim Lorem",
"dolore sit",
"qui do Ut non"
],
"write": [
"eiusmod occaecat dolor proident reprehenderit",
"officia nostrud pariatur voluptate",
"irure in Excepteur magna",
"pariatur nisi dolore tempor aliqua"
],
"execute": [
"enim pariatur nostrud",
"esse dolor",
"eiusmod qui labore eu minim",
"ut nulla in",
"occaecat dolor sit"
],
"manage": [
"magna ex id",
"non ut"
]
}
},
"createdBy": "650bcb9cD2c8d30A0BD526c8",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "3b11bC556aD2bcAAEac88d5D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "c6efF1B1518eBb3e6dABD27f",
"name": "in esse labore fugiat aliquip"
},
{
"_id": "1dF22A3bC2aAaa78Bbdbfbee",
"name": "labore aliquip dolor"
},
{
"_id": "3BC8520eDa8b17Ea6a3D5DAD",
"name": "in est non consectetur commodo"
}
]
},
"edit": "do Ut in voluptate 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"
]
}