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": "b8c4a8798B89BFb7BA6EAF0c",
"namespace": {
"type": "project",
"name": "eiusmod velit",
"accessControl": {
"read": [
"ad",
"nisi",
"velit nisi et",
"ut ut nisi"
],
"write": [
"aliqua fugiat"
],
"execute": [
"cillum sint fugiat quis",
"commodo deserunt et ea",
"ut",
"eu fugiat nulla laboris consectetur",
"ullamco enim ut laboris"
],
"manage": [
"laborum mollit",
"aute in fugiat labore",
"qui labore anim"
]
}
},
"createdBy": "cb8f9281949b12C680BdAD9b",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "A5c145feFeAdb7D3aFA5a264",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "1cD9A80Beb09a33AAEA40C6C",
"name": "ullamco in"
},
{
"_id": "ED3f25dee098Dcdf05fc365D",
"name": "officia aute amet incididunt"
},
{
"_id": "C910a2e9ad624634F9D3F2bC",
"name": "sed consectetur incididunt Excepteur"
}
]
}
}
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": "ACfceFF4B9C9caFcd8a5CbE1",
"namespace": {
"type": "project",
"name": "commodo in deserunt esse",
"accessControl": {
"read": [
"deserunt id",
"incididunt",
"aliqua ex nostrud",
"enim ut dolore sit in",
"consectetur dolor"
],
"write": [
"ut culpa",
"elit irure aliquip laborum"
],
"execute": [
"exercitation aliqua",
"dolor dolore fugiat",
"id",
"ex",
"do"
],
"manage": [
"tempor velit pariatur irure",
"eu sunt"
]
}
},
"createdBy": "2D2f9F953aB3eAa02A89bAfd",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "D8CB3aa6dF2fd2fdC2BAe53C",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "ab270cf49Bf5Eab43F629ea8",
"name": "veniam dolor reprehenderit Duis"
},
{
"_id": "A2E21e0B4b464f6763DDf67C",
"name": "nisi laborum Excepteur pariatur"
},
{
"_id": "0CFfb8c5cA837BD4688d34ac",
"name": "eiusmod"
}
]
},
"edit": "Duis laboris reprehenderit in in"
}
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"
]
}