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": "3fd6B116C46Bc16A24EAf451",
"namespace": {
"type": "project",
"name": "eu",
"accessControl": {
"read": [
"voluptate"
],
"write": [
"minim tempor culpa id",
"enim exercitation Lorem in Duis",
"amet enim irure qui",
"officia"
],
"execute": [
"cillum nisi Duis",
"aliquip",
"consectetur",
"dolore anim"
],
"manage": [
"ea nostrud",
"ea",
"reprehenderit pariatur cupidatat",
"dolore",
"reprehenderit"
]
}
},
"createdBy": "a2cF9e5F8BcB0Eb22080C4fb",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "db47d1c8aff0FdCCFbbf1B9c",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "ca1e7C14bceFAa569Ea7A41B",
"name": "do veniam minim tempor quis"
},
{
"_id": "C4dabC381Ef4b6b835C71Fe5",
"name": "ea"
},
{
"_id": "3c42De10bf3F72B2EEF40D1F",
"name": "ut incididunt mollit magna"
}
]
}
}
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": "111ae4fa6aFb95c26FCDCF42",
"namespace": {
"type": "project",
"name": "culpa",
"accessControl": {
"read": [
"labore",
"magna sed do"
],
"write": [
"nisi",
"sint laboris",
"laborum cillum ea"
],
"execute": [
"enim eiusmod minim",
"minim proident consectetur"
],
"manage": [
"ex",
"officia Duis laboris"
]
}
},
"createdBy": "B37819aFf34a18d1cdc3Def7",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "006c33EfaD528de727fF8CFF",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "DfEBde3ed93D2ee585Aa6BfB",
"name": "ullamco veniam consectetur nostrud aute"
},
{
"_id": "bB18057b9C6a160CfCc8EDE0",
"name": "ad in"
},
{
"_id": "fd796a223C6b447A75Cee92b",
"name": "est culpa"
},
{
"_id": "fbc14eee4ad6ceAbCeaC0cBc",
"name": "ut ullamco irure"
},
{
"_id": "d9383c3b038Fa864Fb409A88",
"name": "et in sit ut consectetur"
}
]
},
"edit": "ea officia"
}
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"
]
}