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": "f6dCa640a6D10329FbeaaF0a",
"namespace": {
"type": "project",
"name": "in consequat est velit",
"accessControl": {
"read": [
"velit ex sint",
"eu",
"incididunt dolor",
"non fugiat culpa"
],
"write": [
"incididunt eiusmod",
"mollit reprehenderit irure in sint"
],
"execute": [
"minim exercitation",
"cupidatat",
"veniam Excepteur adipisicing do",
"in incididunt do",
"aute irure Duis"
],
"manage": [
"voluptate exercitation nostrud labore",
"aute est Lorem",
"quis",
"culpa enim elit irure"
]
}
},
"createdBy": "27C4E89e0CAcED2dF5B61c06",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "00eA605DEe8D8f4DAAdaE479",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bdB7b4ac06ED4e6da6Cdf698",
"name": "incididunt magna voluptate ullamco"
},
{
"_id": "33aC1740a32bBAa0d5ca9EfD",
"name": "occaecat proident"
},
{
"_id": "E6aBD4f139F35fD264eb8dF2",
"name": "nisi"
}
]
}
}
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": "BD9F1afC7D2E39fCDD1EE1dD",
"namespace": {
"type": "project",
"name": "et in",
"accessControl": {
"read": [
"dolor cillum in exercitation anim",
"adipisicing",
"sit sed sunt occaecat adipisicing"
],
"write": [
"aliqua tempor ad labore nulla",
"id esse",
"Excepteur",
"aliquip nulla incididunt laborum"
],
"execute": [
"est",
"do magna",
"aute",
"nostrud aute",
"dolor eu magna"
],
"manage": [
"consequat",
"tempor culpa amet",
"minim ut in officia sed",
"in eiusmod"
]
}
},
"createdBy": "3aF545efBba6c8B1c8b8FAFb",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "FDFBb7bAc93CD1742b84C095",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "C1aAc2A0e3d8A7CcbDCc7B1E",
"name": "voluptate ad cupidatat enim quis"
}
]
},
"edit": "cillum dolore"
}
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"
]
}