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": "2BD3FEF21eefB5a132Df20CA",
"namespace": {
"type": "project",
"name": "dolor nulla cillum",
"accessControl": {
"read": [
"adipisicing aliqua"
],
"write": [
"nisi",
"aliquip eu cupidatat"
],
"execute": [
"et voluptate est ipsum exercitation",
"Excepteur sed quis in",
"voluptate in fugiat sint commodo",
"laborum sint laboris"
],
"manage": [
"ea velit esse"
]
}
},
"createdBy": "FebFAb8f90aDdfCD3EFB01Ac",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "F884cFFe281A7F37f1E421Eb",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "AFa3bb0ccDBB3C48D042bafc",
"name": "nulla velit et do consequat"
},
{
"_id": "3BcCA0ec066bF26bB4d2D70e",
"name": "pariatur do"
},
{
"_id": "Df0da5a4Dd615fc2E4ea18E6",
"name": "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": "e97cA8D24BBa6e22b9F4a9fE",
"namespace": {
"type": "project",
"name": "in esse exercitation",
"accessControl": {
"read": [
"magna Duis mollit amet",
"dolor nisi ipsum veniam cupidatat",
"labore in ut",
"minim pariatur ipsum commodo non"
],
"write": [
"fugiat",
"id cillum aliqua sunt esse"
],
"execute": [
"sint amet nulla"
],
"manage": [
"eu occaecat",
"labore ea velit incididunt",
"magna fugiat eu",
"in officia",
"officia commodo"
]
}
},
"createdBy": "ceE295eE1a7Ab7Ba4faA7eDD",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "7C0F7ecbdd2ecE7f6c09BEB3",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6D12Ec52eC6dCE1f1e7BEDFd",
"name": "incididunt exercitation"
},
{
"_id": "A19B91fBB4d767CA77bfFDF2",
"name": "cupidatat nisi cillum labore"
},
{
"_id": "B8877bDAFF617ecdAC4DbEf5",
"name": "dolore tempor irure"
},
{
"_id": "6EeD41ED5133C44AFA227ed8",
"name": "reprehenderit ea anim officia"
}
]
},
"edit": "eiusmod veniam"
}
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"
]
}