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": "38dDeFaA39e56a6cF7C0E2b1",
"createdBy": "a9CfdbeA2E22C07fAe20dDa2",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "bbA431e4A4FC31ACBdDD4EbC",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "BaBd2BDd8f68C5706BB316AA",
"name": "consectetur est occaecat ipsum"
},
{
"_id": "F648CA1BBDA965d4AAbb4E2f",
"name": "eiusmod culpa ex"
},
{
"_id": "8Cbc6ebFB88bf6101c4481fD",
"name": "Lorem adipisicing"
},
{
"_id": "4A66d4974e52F450d5AddB88",
"name": "ea reprehenderit aliquip adipisicing"
}
]
}
}
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": "a9EaE83efF0DA994f7E38EC5",
"createdBy": "94EDff87aeB3cCB3a38ff4E2",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6f94aEB0C5d0be89fE212542",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "DFB04DbA26F1C2D02FaEce25",
"name": "esse eu"
},
{
"_id": "d13014fa9acf2124c79825f7",
"name": "cupidatat non"
},
{
"_id": "4aa99bd918A9DcFc8DA6D7cC",
"name": "non quis ut Ut"
}
]
},
"edit": "Excepteur ea dolor ex"
}
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"
]
}