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": "Ce7Ab8B7A0BeFE4bEAAeaeBb",
"namespace": {
"type": "project",
"name": "est",
"accessControl": {
"read": [
"ad sit",
"culpa",
"est in"
],
"write": [
"tempor",
"id",
"aliquip",
"reprehenderit"
],
"execute": [
"ea incididunt deserunt ut",
"ipsum in esse",
"mollit dolore dolore cillum"
],
"manage": [
"Ut amet laboris ad laborum",
"fugiat voluptate laborum",
"voluptate",
"Duis commodo culpa ea",
"voluptate elit sit commodo"
]
}
},
"createdBy": "e5b6d04639Bf2a680Cc0ED46",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "29E9ccd0BabdFfbD494a931B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5B96beA8F82B1aDDe1D1FB07",
"name": "aute ad enim minim officia"
},
{
"_id": "Bc7A58FCB3Be218A5090eA34",
"name": "nulla consectetur"
},
{
"_id": "77aCFcA3ABBbe1Db7BefE8eC",
"name": "tempor"
}
]
}
}
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": "00ceB4ab990626f7be6beDEe",
"namespace": {
"type": "project",
"name": "pariatur sunt",
"accessControl": {
"read": [
"in deserunt consequat eu ex",
"laborum",
"consequat",
"anim",
"minim culpa qui pariatur deserunt"
],
"write": [
"sed",
"deserunt aute Lorem",
"ex exercitation aliqua"
],
"execute": [
"cillum reprehenderit laboris ullamco non",
"consequat irure elit",
"proident",
"laborum",
"ea veniam"
],
"manage": [
"adipisicing dolor"
]
}
},
"createdBy": "ff78CDc962AcfA72943DF4C8",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "9b1bC635cC0FDcBae7dF22cc",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bffF875ED30fda9dEB98B873",
"name": "mollit"
}
]
},
"edit": "aute"
}
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"
]
}