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": "9dD5565c0262987b9BfF5eFF",
"namespace": {
"type": "project",
"name": "nisi do ea",
"accessControl": {
"read": [
"dolor nisi est aliqua eu",
"in",
"cupidatat proident dolor adipisicing",
"ad"
],
"write": [
"dolore",
"quis sunt",
"culpa nulla sunt exercitation ut",
"ipsum irure est ad sunt",
"esse quis"
],
"execute": [
"nisi cupidatat aliqua",
"elit",
"in commodo nostrud aliqua dolor",
"dolore ad eiusmod dolore"
],
"manage": [
"in commodo veniam dolor",
"ad",
"dolor nostrud minim reprehenderit",
"et Duis Excepteur nisi",
"dolor labore do cupidatat"
]
}
},
"createdBy": "518aADcE6cAc9a27180CAEAc",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "48c8eee7F8Ee8D8CcceFfcaE",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5aCaFCE74e1c805c02DA9af2",
"name": "non fugiat"
},
{
"_id": "E7368cADA3cFeDC7cD589B1F",
"name": "eiusmod in minim"
}
]
}
}
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": "29CF1A5E1D67a940dbE61f0B",
"namespace": {
"type": "project",
"name": "ea voluptate do pariatur",
"accessControl": {
"read": [
"sed"
],
"write": [
"est ex ullamco ut do",
"dolore do id commodo"
],
"execute": [
"reprehenderit aute eiusmod non",
"ea",
"eiusmod ea",
"minim commodo esse sint ea"
],
"manage": [
"laborum labore Duis ea",
"nisi consequat ea aute"
]
}
},
"createdBy": "67fF4b8eEbA2366670cC0CFA",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "5FE53C767bf5f36FB0Ec7bfA",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "fFA95c6A29B23C0218edac5C",
"name": "sed exercitation consequat"
},
{
"_id": "CAbD1e8BFF16CFeBfbAab1f5",
"name": "Excepteur consectetur"
},
{
"_id": "A8EB85ABE09f0A90E79D4C36",
"name": "officia sunt laboris anim"
},
{
"_id": "5CB99aeBe5d2CeDCd9AFb2fb",
"name": "in in cupidatat non"
}
]
},
"edit": "labore magna dolor Ut 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"
]
}