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": "f4B2CdD0f671fBD8197Ffdaf",
"namespace": {
"type": "project",
"name": "ad cillum eiusmod anim aliquip",
"accessControl": {
"read": [
"sint id eu",
"laboris qui voluptate deserunt",
"aute ut dolor consectetur",
"eiusmod"
],
"write": [
"nisi ea quis non in",
"Ut ex dolor",
"velit"
],
"execute": [
"sunt sint irure",
"ipsum adipisicing exercitation cillum Excepteur",
"dolor pariatur in"
],
"manage": [
"pariatur elit dolore do ut",
"fugiat cupidatat voluptate pariatur",
"ad exercitation irure proident"
]
}
},
"createdBy": "2Ae6b39BacdeC69CAA2e7F4E",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8EF56A2A2c8Ec35ff5faE49D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "1a7CEE624da6EaDcd8af442B",
"name": "sed consectetur"
},
{
"_id": "0BAaF468B7ec3A3F37f6A0db",
"name": "dolore"
},
{
"_id": "82B22ACafCC8516F6558dCAf",
"name": "cupidatat laboris id amet Lorem"
}
]
}
}
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": "9E01c38b7bbe0D2cbB4f59F1",
"namespace": {
"type": "project",
"name": "esse reprehenderit eiusmod",
"accessControl": {
"read": [
"sunt Lorem eiusmod in occaecat"
],
"write": [
"laborum sunt dolore laboris quis",
"incididunt ullamco amet aliqua",
"laboris",
"proident magna laborum",
"ut dolore veniam id in"
],
"execute": [
"culpa occaecat reprehenderit esse",
"officia cupidatat dolor do incididunt",
"non",
"in fugiat",
"deserunt sunt Ut Duis"
],
"manage": [
"aliquip cupidatat deserunt",
"dolor enim ut quis eu",
"enim culpa pariatur dolore esse",
"amet velit ullamco",
"labore officia cupidatat adipisicing ut"
]
}
},
"createdBy": "2AcB7C2efe453C6a87aF2Db6",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "bD68Ee9c0Bc26f9F65cC51Ef",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Fcb69A968B738BB0612CE5Fa",
"name": "elit nisi"
},
{
"_id": "04BE92f0BbD6fd60A368375B",
"name": "ut Duis"
},
{
"_id": "28abfAed6053e4BF0E79Dc2d",
"name": "cupidatat veniam dolore ex ad"
},
{
"_id": "dC8dd4bCfdC433b3e3Fc58e7",
"name": "Excepteur occaecat Duis labore"
}
]
},
"edit": "consectetur culpa magna"
}
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"
]
}