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": "230Ca01EbfF47fe2e27E9bCc",
"namespace": {
"type": "project",
"name": "proident est dolor aliqua",
"accessControl": {
"read": [
"consequat exercitation qui sit magna",
"dolor ipsum"
],
"write": [
"cupidatat eu nulla minim incididunt",
"magna non id dolore ipsum",
"ut in mollit",
"nisi fugiat",
"velit minim proident"
],
"execute": [
"laborum irure cillum pariatur et",
"deserunt est voluptate",
"irure aliqua est in",
"in ipsum irure",
"dolor deserunt sunt consequat"
],
"manage": [
"pariatur id culpa",
"ea est ex commodo magna",
"Lorem"
]
}
},
"createdBy": "c2756eBf9d32e42A1355531F",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4594d6391Cd019B0CDed846D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "e93Df7a1499513b2cBB7dE99",
"name": "commodo Duis"
},
{
"_id": "8f3cbC40eDc5C49A01A6e8A6",
"name": "qui"
}
]
}
}
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": "4eCAE7CeccCBAaf24a8Bc0CB",
"namespace": {
"type": "project",
"name": "commodo aute Excepteur et dolore",
"accessControl": {
"read": [
"dolore quis ad nostrud in",
"proident officia dolor voluptate",
"incididunt ut sint sunt cupidatat",
"in dolor minim incididunt do",
"Ut in fugiat ea"
],
"write": [
"do labore et",
"sint ea exercitation"
],
"execute": [
"sit dolor",
"sint"
],
"manage": [
"qui adipisicing nisi",
"Excepteur"
]
}
},
"createdBy": "Eba0089aCdbcd2Ca39c8AE57",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "49d7efabD8954DCeefcA3c3B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "86e50be8AA01e7EEbb460Af9",
"name": "ex proident laborum incididunt id"
}
]
},
"edit": "eu ea"
}
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"
]
}