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": "FF17c7bAC942A5Bbfb0E9DA6",
"createdBy": "9BC4BDBefc4ff3ccfcC98DCC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6E3a2C7B74fD6DCA483aeFcE",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "4c25dcf7bD7D646eF80B2C08",
"name": "cillum anim",
"description": "A user-defined object to help group documents."
},
{
"_id": "78dA3DCdeDFDa787a7d04774",
"name": "minim ad esse",
"description": "A user-defined object to help group documents."
},
{
"_id": "bf4866Ad329AFDa61f88caB9",
"name": "sint adipisicing ut",
"description": "A user-defined object to help group documents."
},
{
"_id": "DEA7257CDc9da09C1E3E1C4a",
"name": "dolor Excepteur laboris nulla",
"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": "b0afb37DBb6F0AD8dDCfB058",
"createdBy": "561b3faa84da455dc05EE00b",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "2AcCFcc1d4E6feE2dA1ae99d",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "AC93d92Fa32FDDDD583B72FD",
"name": "non deserunt",
"description": "A user-defined object to help group documents."
},
{
"_id": "eAC620a6FD83c7DEEde04Eb7",
"name": "ea exercitation reprehenderit officia aliquip",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "dolore irure est sint qui"
}
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"
]
}