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": "B6bB6Af9f91F18d1382F8BBD",
"namespace": {
"type": "project",
"name": "mollit reprehenderit Excepteur fugiat cupidatat",
"accessControl": {
"read": [
"incididunt aliqua esse occaecat",
"irure laboris consequat in",
"aliquip",
"Duis ut",
"est"
],
"write": [
"laborum consectetur et cupidatat",
"aliqua velit ut in"
],
"execute": [
"cupidatat",
"voluptate",
"deserunt consequat velit et",
"commodo ex in minim"
],
"manage": [
"sit"
]
}
},
"createdBy": "6dB479CacBD7f7adA0a9AD00",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "44dcB9c4666cADCC8fdaA54f",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "2abA2DB1eb441dF5Cb375FDD",
"name": "est commodo proident in nostrud"
}
]
}
}
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": "Ebfd1efaD1baCAf2235b47BF",
"namespace": {
"type": "project",
"name": "proident",
"accessControl": {
"read": [
"Ut ea officia",
"exercitation",
"sit esse dolor"
],
"write": [
"nisi laboris",
"ea deserunt anim sed Excepteur"
],
"execute": [
"minim cillum sit mollit",
"et minim mollit dolor",
"dolore"
],
"manage": [
"veniam cillum sunt Duis"
]
}
},
"createdBy": "d25DA6cB2e6f7aFBaa6D1E0D",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "BEe2e2D13BEAD152cF7Ad1C0",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "fF8C088eC9dA889204Ccf2c7",
"name": "ex"
},
{
"_id": "D43A54FBbEa5dBD5a7B7aac9",
"name": "in ad in Ut reprehenderit"
},
{
"_id": "a3f91416Ab8AaEF43e7cfB84",
"name": "ea Excepteur"
},
{
"_id": "469c90a6cf8820765bc504d8",
"name": "sunt tempor aliqua fugiat"
}
]
},
"edit": "ea anim eu"
}
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"
]
}