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": "57dEDFc90125c0E81141B5BB",
"namespace": {
"type": "project",
"name": "nostrud",
"accessControl": {
"read": [
"ex",
"tempor Ut ea consectetur cillum",
"ea quis esse sunt voluptate",
"occaecat sed ex proident"
],
"write": [
"ut",
"pariatur",
"est sed id"
],
"execute": [
"aute",
"cupidatat voluptate commodo",
"id et nisi ad",
"voluptate consequat ut aute elit"
],
"manage": [
"ut tempor voluptate",
"anim qui non"
]
}
},
"createdBy": "fD9a4E6eAC7Aa52a75AAaCc1",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "3DECF1ed590DDADC53Bc7468",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "8eB6A358686e4778FC5af60e",
"name": "occaecat voluptate velit commodo dolor"
},
{
"_id": "B43ef7329F0dcbfD33fedeAf",
"name": "anim in dolore Ut"
},
{
"_id": "262bBA6eFDb1E9671f9d33af",
"name": "tempor esse veniam"
},
{
"_id": "45f7aee3dE17321FC00fcfcc",
"name": "dolore qui do veniam cillum"
},
{
"_id": "dFe11CbB7aAe246ceaa6D3E5",
"name": "labore dolore non elit"
}
]
}
}
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": "83Fb21C8c964F4d99fadedfD",
"namespace": {
"type": "project",
"name": "non ipsum",
"accessControl": {
"read": [
"ullamco Excepteur",
"et deserunt",
"eu id",
"id incididunt est Lorem"
],
"write": [
"enim in amet dolore",
"minim",
"laborum in dolor"
],
"execute": [
"exercitation sint",
"enim exercitation commodo Excepteur culpa",
"in deserunt eiusmod"
],
"manage": [
"deserunt do"
]
}
},
"createdBy": "3228357eE40ecf6AbbDCf5b1",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "Cceeb07b6bcCC0696bdBDcac",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "13dc08eCc2e8439fAc3B0dCf",
"name": "deserunt pariatur nisi irure veniam"
},
{
"_id": "A8dcCef7f2b26b1b079031CC",
"name": "commodo cillum esse magna enim"
},
{
"_id": "D53FdF3e5CAdE81baD4e8ca3",
"name": "in sed"
},
{
"_id": "2C048F14b5D7DCab316A3385",
"name": "quis"
}
]
},
"edit": "minim 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"
]
}