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": "EbEb2CAAAd9eccbdbd62Dd61",
"namespace": {
"type": "project",
"name": "dolor id Excepteur ut Duis",
"accessControl": {
"read": [
"fugiat dolor magna veniam",
"dolore exercitation quis sint adipisicing",
"do laborum nostrud id",
"sint in adipisicing elit ut",
"deserunt cillum anim"
],
"write": [
"in proident do eiusmod ut",
"officia magna laboris ipsum do"
],
"execute": [
"sit commodo qui sunt",
"ullamco",
"aute non nostrud consequat laboris"
],
"manage": [
"dolor sit aliqua Excepteur",
"dolor labore pariatur dolore",
"laborum nostrud dolor",
"dolor ullamco",
"Lorem pariatur"
]
}
},
"createdBy": "d889ACFaFBbcAC0dA01CF96B",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8EB85eF990C2dbeF7C5FFB8F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6aeb4Aab68DeB1BD220C8223",
"name": "dolor"
},
{
"_id": "579cce027DD04F2C2C0e0dFA",
"name": "officia elit do commodo"
}
]
}
}
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": "4C48b04bAed788FDa472E331",
"namespace": {
"type": "project",
"name": "esse do",
"accessControl": {
"read": [
"dolore irure pariatur eu labore",
"nulla ullamco veniam"
],
"write": [
"dolor cupidatat fugiat minim",
"deserunt tempor",
"non mollit et"
],
"execute": [
"occaecat esse in cillum",
"Excepteur adipisicing mollit dolor",
"fugiat",
"nostrud"
],
"manage": [
"dolore"
]
}
},
"createdBy": "3c25FA2B340CF9F98Ef3d633",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "53f7AbDFA3E505fb53eaD374",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "b760adCB71C76aA29515BF26",
"name": "Ut reprehenderit cillum veniam laborum"
},
{
"_id": "173E2fD75C37edccEcA9d361",
"name": "reprehenderit tempor in nulla voluptate"
},
{
"_id": "d3be3Bf8eEAbeeC2bEcD502b",
"name": "anim"
}
]
},
"edit": "cupidatat esse"
}
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"
]
}