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": "4EA9eE7EC3BD7CdFf9Ad0b6b",
"namespace": {
"type": "project",
"name": "Duis",
"accessControl": {
"read": [
"labore ut ea in ut",
"id sunt occaecat exercitation",
"id",
"magna non consequat esse amet"
],
"write": [
"in esse ex",
"incididunt sint"
],
"execute": [
"sed",
"incididunt ea elit Excepteur exercitation",
"ipsum"
],
"manage": [
"velit consequat",
"consectetur exercitation laborum sint Duis",
"voluptate eiusmod",
"id esse"
]
}
},
"createdBy": "914220B7cfff6AcfeA3cDfC0",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8050E53cbFa00Dd4c0BBA2Fd",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "974cfeF1Cb6e8D613FA6Cf29",
"name": "cillum consequat"
},
{
"_id": "aF9c0fbEAA8C0B204e1255aC",
"name": "qui reprehenderit"
},
{
"_id": "0aD60fE042ABc3cB5ea9b3cD",
"name": "nulla voluptate non in"
},
{
"_id": "De47b61Ce4c512cBaED62b41",
"name": "et irure cillum occaecat"
}
]
}
}
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": "7a98Cb77ef8F12F7d3F109AF",
"namespace": {
"type": "project",
"name": "dolor velit",
"accessControl": {
"read": [
"ea consectetur",
"tempor aliquip eiusmod",
"in incididunt",
"amet dolore consequat",
"enim adipisicing commodo consequat deserunt"
],
"write": [
"eiusmod culpa et",
"magna est",
"laborum Duis Lorem pariatur nulla",
"Lorem exercitation",
"Duis"
],
"execute": [
"ea exercitation in ullamco",
"eu laborum"
],
"manage": [
"Excepteur id non",
"adipisicing nulla nisi pariatur officia"
]
}
},
"createdBy": "0312eEF96DDefBAadb4501Ff",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "e3e4Af1e24cdCE19e91bf1F1",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "a4d0436DC3E1fD9C44520075",
"name": "proident"
},
{
"_id": "7AadBCAc5ee4fe9CDcF68422",
"name": "proident"
},
{
"_id": "a9E2De553c2aceEaFa8fb5BA",
"name": "Excepteur"
},
{
"_id": "CEeC7AEF9a5EFBc3ff4A8a8E",
"name": "aliquip"
},
{
"_id": "DAFD84Ff6Af27Abf161E91b4",
"name": "do"
}
]
},
"edit": "cillum minim magna veniam nulla"
}
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"
]
}