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": "4F656b366FeACCACF82a7b8b",
"namespace": {
"type": "project",
"name": "incididunt",
"accessControl": {
"read": [
"officia non Excepteur eu consectetur",
"aliqua aliquip",
"ex qui",
"adipisicing",
"quis incididunt officia ut ipsum"
],
"write": [
"occaecat eu elit cillum",
"occaecat esse"
],
"execute": [
"sit incididunt veniam ex",
"cillum irure culpa nisi pariatur",
"enim aute Duis",
"ullamco minim fugiat exercitation",
"ea adipisicing ut laboris"
],
"manage": [
"dolore"
]
}
},
"createdBy": "Eec8caA0BfcE1CeE82B2997A",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "F1bB93eDCa95de436f7AEEc8",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "060DF58f93D4eAe37EfdB45d",
"name": "commodo eu ea ad officia"
},
{
"_id": "FEf6E5DeaAe0cBcd124522EA",
"name": "Excepteur id in sint"
},
{
"_id": "0C0CBfBded8EFBA2E79D119E",
"name": "ex occaecat elit cillum"
}
]
}
}
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": "46B275F96DCBf1D30B8AAa37",
"namespace": {
"type": "project",
"name": "in dolore eu sint occaecat",
"accessControl": {
"read": [
"minim aute in sint",
"dolor commodo sit reprehenderit Duis"
],
"write": [
"voluptate sed Lorem aliqua",
"dolore tempor culpa",
"do ex adipisicing commodo minim",
"ullamco",
"tempor ex sunt"
],
"execute": [
"ut",
"culpa mollit occaecat",
"et laboris pariatur",
"Duis in aute"
],
"manage": [
"quis"
]
}
},
"createdBy": "0bbF8D7baBEFC968C0be7e5d",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "CEDDEbD4D4Dc163acDa3cBfF",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "A86c7Aa34fBf22f51D970adC",
"name": "in fugiat anim ad"
}
]
},
"edit": "ex deserunt Excepteur"
}
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"
]
}