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": "BBFad14dEc0a83BCBa037d4C",
"namespace": {
"type": "project",
"name": "nisi aute ut irure sit",
"accessControl": {
"read": [
"ipsum dolor veniam ullamco",
"nisi",
"adipisicing"
],
"write": [
"officia",
"ullamco dolore ipsum eu",
"labore Lorem quis",
"anim dolore quis in reprehenderit"
],
"execute": [
"qui commodo magna ea",
"id aliqua sint",
"in qui"
],
"manage": [
"nostrud sunt",
"sed voluptate"
]
}
},
"createdBy": "61ca2ce5Edc89Bb8e1A9e03D",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "746Bc9b3a6AdCb3a4dC91F5D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "58fE0Aad80CADaf05dC2F214",
"name": "occaecat"
},
{
"_id": "e5cfE9A5fEa83fc87fAf345b",
"name": "ut ullamco ex occaecat est"
},
{
"_id": "Dbbcff8C881079c6e7D63BDb",
"name": "ipsum ut commodo ad adipisicing"
},
{
"_id": "7aBB72DF513d2BAc1B3BE3aA",
"name": "dolore proident"
},
{
"_id": "DbaD0f0Fae4Ab0Bf3e5FBa90",
"name": "adipisicing"
}
]
}
}
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": "eD9D65963f8EFe6e9E5cc185",
"namespace": {
"type": "project",
"name": "pariatur",
"accessControl": {
"read": [
"non nostrud dolore aliqua",
"in consequat",
"incididunt ad",
"Excepteur ipsum"
],
"write": [
"minim dolore",
"Lorem ex",
"irure nostrud ut commodo",
"nulla",
"Duis Excepteur dolore"
],
"execute": [
"fugiat",
"sint laboris in",
"labore esse non eiusmod dolor"
],
"manage": [
"magna elit officia in velit",
"id tempor"
]
}
},
"createdBy": "1aa6a094beb1ACFdF8642298",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "76a57030BEBBEAb68a36cfB5",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Dca45cA410a840317aDeecD6",
"name": "ipsum quis tempor"
},
{
"_id": "d76EFF5382f4D77c1f2E012C",
"name": "fugiat qui ad sunt"
},
{
"_id": "b4D5fFEc9e0837eCF8fe4d6C",
"name": "aute pariatur id"
}
]
},
"edit": "nostrud non cillum elit"
}
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"
]
}