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": "6fdc725f398a24f29Def7b4D",
"createdBy": "b6BD31634629E3AB0fBAAB7A",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "27adb84B2BB76ee7603dde4E",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "33C287233f7EFc6e4978E3Cd",
"name": "in"
},
{
"_id": "CFF5f8408ab70DafFbec03b7",
"name": "aute consequat sed dolor"
},
{
"_id": "cD68F9C94Ef5eBb635d33497",
"name": "Excepteur tempor adipisicing ullamco"
}
]
}
}
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": "8F1A5cE9bCDF3fB2d45837b9",
"createdBy": "D1aBa9D8CE07FEB9bFc8e6CD",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "b171f35CCc630fba3Cbf2EFF",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "a914ECCBa3FFBFe29104BD35",
"name": "laboris Lorem"
},
{
"_id": "A78C96aC130BEd8Ce14bcbcE",
"name": "occaecat Duis proident aute consectetur"
},
{
"_id": "dB474fe96a805D5e92B2c5BA",
"name": "voluptate ea ullamco aliqua aliquip"
},
{
"_id": "f2EcaaEaE2886e57eEd5B14d",
"name": "do sunt enim aliquip"
}
]
},
"edit": "cupidatat enim nostrud"
}
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"
]
}