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": "3CfD5ad18ccCb81Dd1fb3fdb",
"createdBy": "BEC4f82a4FBb25aBF7FFBDbf",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "ab3cBFa59b138e9cB0422c88",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "E6023274022D17fc26456ce8",
"name": "in officia voluptate"
},
{
"_id": "AC315CB86669d5Af248CcFeF",
"name": "in Duis"
},
{
"_id": "D090362E7fcB6BA1dC47e9fB",
"name": "commodo do velit"
},
{
"_id": "9CD9a53Af85DC0785dCcfbea",
"name": "consectetur elit id est"
}
]
}
}
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": "2CBFEE19dc5D60A6Ea9DE710",
"createdBy": "Cf5Bf4FB05bbf2710Cc57a2f",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "ebbbCC2dFb2eC8aB53E4C7Ed",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "dcba4eFABd5011372ac2a565",
"name": "sed culpa ut Duis"
},
{
"_id": "cb5c1d9d975669BDD1e507ca",
"name": "commodo dolor ea Excepteur"
},
{
"_id": "FBd3044F8Ea99CE4A5a71F0b",
"name": "mollit dolore cupidatat do sunt"
}
]
},
"edit": "ut aliqua culpa"
}
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"
]
}