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": "AABB88dDF1a19ADD8Ab8902a",
"createdBy": "bCdAec1E6d3B5Ac94B47f756",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "F6AAcAfD94ACAf0Ff2C735aE",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "073d0704ACFdbf9EacfBbAe7",
"name": "sed anim ad"
},
{
"_id": "4698EF6E0c69CE4aDAd206bA",
"name": "minim Lorem eiusmod"
},
{
"_id": "3E851EbA96A77dAEaC7cBcBA",
"name": "adipisicing veniam non officia"
},
{
"_id": "3c1849B0CB051Cbcda8B73b0",
"name": "Duis sunt"
},
{
"_id": "7bAE8a2535E20d46AC91b997",
"name": "magna et commodo ullamco"
}
]
}
}
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": "bce7Bd74fA8DDBDFE3bD2A46",
"createdBy": "b3Ff8F7bBD216edeFE26a8b4",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "62abdFEFff1bAedd7F790c3A",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "13B97cd2557Ee0e96C5d918f",
"name": "officia Ut"
},
{
"_id": "5CeaeEd533FF1e1bf80A652F",
"name": "esse non Excepteur sed officia"
}
]
},
"edit": "reprehenderit est Excepteur culpa"
}
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"
]
}