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": "344FB2d439DD6fCe84d4054e",
"createdBy": "cd997Acc2CC1AD92ecc4b24b",
"created": "2019-11-25T22:51:39.201Z",
"lastModifiedBy": "A26923F7Be6B08c83FDd4C5C",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1
}
}
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": "50c3EAdBb2BDE25aEFDEC244",
"createdBy": "3995d07c66da8CA126ACE472",
"created": "2019-11-25T22:51:39.201Z",
"lastModifiedBy": "9BB0ed4Bb7eC8Ddee8BF0E03",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1
},
"edit": "commodo dolor"
}
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"
]
}