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": "FE858bc59Cebf4b39A6B1B0a",
"createdBy": "fb7948f989afCbD80EaCcDED",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1b81F0AFe28eEFcAfD3fDd84",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5D3090dF66589d6Cf34bB45B",
"name": "Excepteur est",
"description": "A user-defined object to help group documents."
},
{
"_id": "db8D443E3f691d558502090B",
"name": "eu minim",
"description": "A user-defined object to help group documents."
},
{
"_id": "202384A7B85eCBEAbfDEd754",
"name": "incididunt",
"description": "A user-defined object to help group documents."
},
{
"_id": "cFbcb6EAf03158eeD0eeF4e2",
"name": "dolor ea culpa",
"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": "0537845B4A35ae4AcFF43D1D",
"createdBy": "b26fdd73dFdcB64bbfc3BECc",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "92c2B4e0CE7DCDdCE460F2E4",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Ca2EBEC5CBDbf66FF3c33BAE",
"name": "sunt",
"description": "A user-defined object to help group documents."
},
{
"_id": "6A2d7B6BbAAd1FF8C14E53FA",
"name": "labore laborum magna amet",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "aliquip"
}
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"
]
}