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": "a367BA5f9BDD624e3dF0BcF9",
"createdBy": "19291f218C88aca7a96B3aFB",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "F45a3EC3d9d3e9486675bFE5",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bb33380fEf5ebeacA3Bb3cE6",
"name": "ea",
"description": "A user-defined object to help group documents."
},
{
"_id": "4ED1962c281b295fAFEdFC91",
"name": "id eiusmod dolor",
"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": "Ea7F19B574CCebBAD5f555Ea",
"createdBy": "3CE714bD0dA2F03be37031Be",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "67eEF76c1a9dFCA4f4D34bF1",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "D2e7ebbA8148c7B6A398ac5f",
"name": "quis",
"description": "A user-defined object to help group documents."
},
{
"_id": "eC78f876DDE1A617c4AAA77E",
"name": "mollit exercitation ad et",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "dolor ipsum ea laboris"
}
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"
]
}