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": "c4FDAECDb52AaAFb78c15f25",
"namespace": {
"type": "project",
"name": "pariatur aliqua culpa occaecat qui",
"accessControl": {
"read": [
"voluptate quis",
"ipsum eiusmod commodo officia ex",
"non eu",
"exercitation consequat"
],
"write": [
"dolore",
"Ut",
"cillum dolor dolor amet"
],
"execute": [
"voluptate do Duis pariatur",
"tempor anim elit",
"cupidatat",
"voluptate nulla fugiat",
"proident"
],
"manage": [
"pariatur culpa sed anim",
"nulla magna",
"mollit aliqua dolor labore esse",
"dolore irure ea elit"
]
}
},
"createdBy": "4Abfb2047a68bfcC0e78fA9e",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "46518fb1b8DBbd071B1b6Ae0",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "15ffDa000aAeB093EDc3ec1F",
"name": "ut ullamco est cillum"
},
{
"_id": "9F7fbc930D53CB9A01eBCe89",
"name": "Ut consectetur aliqua"
}
]
}
}
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": "627c359F162fF5B112c53f9e",
"namespace": {
"type": "project",
"name": "aliquip ad mollit ea adipisicing",
"accessControl": {
"read": [
"culpa Lorem dolore nostrud"
],
"write": [
"veniam sit consequat sint",
"veniam dolor officia Duis",
"sunt magna",
"et",
"irure"
],
"execute": [
"officia",
"commodo",
"et"
],
"manage": [
"nulla nisi",
"sunt sed occaecat id",
"labore id nisi qui dolor",
"non labore reprehenderit Ut"
]
}
},
"createdBy": "F03686d0DDcFc6daC9b6A076",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "F70dD5cf9CB292E80EDCd72f",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "0c1527c9Ce2cD1C9FA89373B",
"name": "laboris Duis in cupidatat"
},
{
"_id": "fb05cbC0e56eD9AD2aFcA3Bb",
"name": "laborum do laboris"
},
{
"_id": "dD703452ECEeFf1868B2CAc5",
"name": "ex velit veniam ipsum anim"
},
{
"_id": "CF21e2e0bdD003120EDBBaad",
"name": "eiusmod sed"
},
{
"_id": "F5C6C8C59b245CBFAcFE4fA4",
"name": "exercitation nulla mollit ex"
}
]
},
"edit": "reprehenderit dolor enim"
}
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"
]
}