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": "0a358bB4DC3226B940b0303c",
"namespace": {
"type": "project",
"name": "est quis Duis qui",
"accessControl": {
"read": [
"eiusmod qui sit elit",
"deserunt in nisi",
"Ut pariatur ipsum culpa Lorem",
"adipisicing deserunt elit ut eiusmod"
],
"write": [
"est consectetur ea ullamco",
"ipsum dolor Excepteur magna",
"et dolor reprehenderit nostrud"
],
"execute": [
"reprehenderit fugiat sunt eiusmod id"
],
"manage": [
"anim in aute ut",
"eiusmod ut irure laborum",
"qui officia sed cupidatat"
]
}
},
"createdBy": "f32A93b7F498f680cDabB06c",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "E7523c534ecacc7441645D2F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "FbeFc3e486DBBA3B16AfCe4f",
"name": "voluptate non ex"
},
{
"_id": "E8500D6BE4EE34C21E9D6F3e",
"name": "veniam eiusmod consectetur"
},
{
"_id": "ab8485dC3eb8DAF39b58d6Ce",
"name": "quis exercitation et eiusmod cupidatat"
},
{
"_id": "436A843aA4eA79Eeefdf7288",
"name": "incididunt aliqua adipisicing Duis occaecat"
},
{
"_id": "2b8e2E67ed9E4e34C080dd9F",
"name": "laboris tempor dolor ipsum"
}
]
}
}
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": "e6b8890CAa68c1a53d8Fa376",
"namespace": {
"type": "project",
"name": "velit quis eu fugiat deserunt",
"accessControl": {
"read": [
"qui",
"et ipsum sunt",
"Lorem enim do cupidatat irure",
"nostrud eiusmod Duis non"
],
"write": [
"incididunt"
],
"execute": [
"Lorem",
"aliqua dolore ut ipsum",
"dolore in",
"reprehenderit sit non"
],
"manage": [
"qui dolore est id",
"sed quis sunt velit"
]
}
},
"createdBy": "9d3A5aD70aA087fD77bb9eB2",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "b41A2df4D0a805dd65FfCF3f",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "28DAdfCf1d7eec572a4AB24C",
"name": "do qui Ut"
},
{
"_id": "beb76c7e71E9B444814D7abF",
"name": "anim in tempor laboris"
},
{
"_id": "Dfd3dCEBfa57049dEaaEFA18",
"name": "dolore"
}
]
},
"edit": "amet tempor dolor occaecat"
}
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"
]
}