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": "4A8EefDC2f12CdFBC5Cb21f5",
"namespace": {
"type": "project",
"name": "ex eu qui in Excepteur",
"accessControl": {
"read": [
"velit est irure quis",
"nulla"
],
"write": [
"ullamco do esse mollit",
"in labore officia"
],
"execute": [
"labore nulla irure occaecat"
],
"manage": [
"do",
"magna",
"laborum proident non quis mollit",
"Ut dolore pariatur occaecat voluptate"
]
}
},
"createdBy": "97d905C57A29892D3356D3Bc",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6CEcfB3e6e5CffF3A72Fb164",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "08172C8644345E2024E8d0fd",
"name": "dolore id"
}
]
}
}
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": "4692c1Bc4cf10BD91114Fe99",
"namespace": {
"type": "project",
"name": "aliqua reprehenderit eiusmod esse",
"accessControl": {
"read": [
"Excepteur dolore nisi ut ad",
"dolore aliqua nostrud esse",
"in irure aliqua"
],
"write": [
"reprehenderit aute consectetur anim sed",
"cupidatat nostrud non occaecat"
],
"execute": [
"aliqua dolor"
],
"manage": [
"Ut",
"Ut",
"in",
"ipsum dolore mollit commodo"
]
}
},
"createdBy": "19BAD7EB1D9acEbFa56dbcdB",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8a7ca20F7aE8e81fF7Bf6db6",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "20c01e46Cab6CA6730EBE7ff",
"name": "deserunt velit et laboris dolor"
},
{
"_id": "dF965E1b0b7f22eFcaAEFD2F",
"name": "Duis aliquip sit ex dolor"
}
]
},
"edit": "velit irure in"
}
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"
]
}