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": "ABF30ECe226b2BCC8207763A",
"namespace": {
"type": "project",
"name": "ut tempor dolor",
"accessControl": {
"read": [
"occaecat",
"in",
"commodo",
"in officia id",
"ullamco adipisicing"
],
"write": [
"do dolor"
],
"execute": [
"tempor",
"Lorem in dolore"
],
"manage": [
"pariatur sunt",
"Duis elit laborum",
"laboris mollit",
"sint ullamco non amet deserunt",
"consectetur dolore sed fugiat"
]
}
},
"createdBy": "82511A3cffe812B4fEa31e93",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4CcB75394b85e5ca3BC8e22E",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "0F265dDE86ed8806fa4115f7",
"name": "do eiusmod"
},
{
"_id": "a0cf7DEAeFfFd0c48BAb0b6A",
"name": "Lorem"
}
]
}
}
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": "18Ee239bec4ba8B5AE3ebC30",
"namespace": {
"type": "project",
"name": "qui reprehenderit enim consequat",
"accessControl": {
"read": [
"est ea",
"mollit in in fugiat est"
],
"write": [
"irure",
"Duis",
"irure deserunt",
"dolor ut"
],
"execute": [
"cupidatat qui non aute",
"adipisicing aliqua",
"Ut",
"officia qui consectetur commodo sunt"
],
"manage": [
"in eiusmod dolor"
]
}
},
"createdBy": "bdEcbD8eAfa4ac037F356d2D",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "2ab74B2FB4a21ba729fa674B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "E4dCE34E72bC353adBD7c7B2",
"name": "cillum incididunt ea esse reprehenderit"
},
{
"_id": "dfa1Da0c553360274Dd09223",
"name": "magna in ea"
},
{
"_id": "2a9964a672fABBA063Af464D",
"name": "esse voluptate adipisicing"
}
]
},
"edit": "amet mollit velit"
}
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"
]
}