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": "e66821A9eB78Fa8CE4BA650a",
"namespace": {
"type": "project",
"name": "cupidatat in proident cillum nisi",
"accessControl": {
"read": [
"id esse",
"Lorem adipisicing exercitation id ipsum",
"et sed exercitation qui veniam",
"velit ea consequat exercitation enim",
"tempor aute"
],
"write": [
"dolore quis",
"magna eu aute est velit",
"commodo ullamco nulla",
"Ut culpa",
"minim laboris"
],
"execute": [
"ullamco Duis dolor pariatur proident",
"pariatur dolor nisi veniam",
"adipisicing laborum consectetur esse qui",
"Duis qui sit in",
"ipsum deserunt"
],
"manage": [
"enim ad eu mollit commodo",
"et dolore eiusmod",
"in cupidatat mollit nostrud"
]
}
},
"createdBy": "D040EEaC6FecddcFEfF48c6c",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1Ece79bEDaCa1d7fFCA8d455",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5307DcA85dB95c17e00cAD2a",
"name": "do"
}
]
}
}
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": "e0ab2870CB0b31eA4AF9C0ce",
"namespace": {
"type": "project",
"name": "in Lorem fugiat",
"accessControl": {
"read": [
"voluptate",
"quis ex aliqua",
"dolore",
"in",
"ex ullamco est laboris ut"
],
"write": [
"elit",
"Ut",
"irure et ad dolor laboris",
"ut cillum"
],
"execute": [
"laborum est velit reprehenderit",
"culpa dolor",
"eiusmod minim culpa Ut reprehenderit",
"culpa",
"nostrud"
],
"manage": [
"est sit exercitation officia aute"
]
}
},
"createdBy": "bdc8A48fA1A8bAEd78328a4A",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "ef9dCfb149C353a036aDF200",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5DBbF4076AbA8F1eAa269D7d",
"name": "magna exercitation anim"
},
{
"_id": "BD7C8dCAf33c35D77ed286Ab",
"name": "non do nostrud pariatur"
},
{
"_id": "a6f7A40b19f5CD394b5c5075",
"name": "adipisicing eiusmod aliquip ipsum ut"
},
{
"_id": "f3DfAFb29137D1cD5705b8F7",
"name": "Excepteur ut cupidatat et"
},
{
"_id": "BA0E1fbd747ae2EE6e5a5eca",
"name": "Lorem incididunt"
}
]
},
"edit": "dolor aliquip et irure esse"
}
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"
]
}