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": "8E162aBbd7B4E3a1FbF88dc7",
"createdBy": "0bdA21D30C2A13349c307BcF",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1644BdeeE448e53EE7529044",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "7cc7B36bA139AcfC5a9049BB",
"name": "exercitation cupidatat cillum Excepteur",
"description": "A user-defined object to help group documents."
},
{
"_id": "CaD90A18c993CD05CD807F11",
"name": "mollit dolore magna consequat",
"description": "A user-defined object to help group documents."
},
{
"_id": "EEFbd6C9FF9bFc01d874bEDA",
"name": "sint non tempor deserunt et",
"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": "D6EfbbBcf25Acc07D93636bb",
"createdBy": "616D44AfaC81AED3F51d6F14",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "41Ad14FaCF1DDe52acDEC7ce",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "ABfBDb71EA8F2fB474cd1DfB",
"name": "cupidatat enim veniam Lorem",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "qui minim"
}
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"
]
}