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": "522EACebB9448E442FeCBCde",
"createdBy": "acFc95b02bFe1081AD6CcDcC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "Dce8ADA5e51a38b9ec7B945D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "d92fD13dAf534A47628B3ead",
"name": "dolor amet",
"description": "A user-defined object to help group documents."
},
{
"_id": "35F29A8fd08C4921578Df60E",
"name": "consectetur",
"description": "A user-defined object to help group documents."
}
]
}
}
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": "fB4AfA1E1C130ce4fDc60Eb2",
"createdBy": "93761d431CD7F2BaB1E5CeE0",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "ffB9be66fb0C81Ab20b4E9bB",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5616F5CE4eEF1Ab316ffea40",
"name": "dolor",
"description": "A user-defined object to help group documents."
},
{
"_id": "428b9A5588bEaF82854B0B09",
"name": "tempor aliqua in consequat commodo",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "proident culpa 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"
]
}