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": "BC6a9ed8fdD10cBbE50dA7de",
"createdBy": "Da5610AfAe16f8Fbd951DfDB",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "0A2570C1322D8C095C9AAAE4",
"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": "2c79fB1eCE03B73fF2Ea8946",
"createdBy": "6a9b4CfcbDd8A7Fe03C5aD7E",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "eba3EE21E93e5a573fcfD15b",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1
},
"edit": "est incididunt occaecat labore"
}
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"
]
}