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": "4942c0F1BA00a52CcBF18c7a",
"createdBy": "48dc689Ca5fCDacC7D6174AC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "Ced99cD002FaC6d4dB84D3e7",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6eEca9AAD0A88Fccbc4E95ca",
"name": "reprehenderit labore irure qui"
},
{
"_id": "9F0EFed2f0ACCEeDfA58ef5e",
"name": "nostrud proident magna aliquip eiusmod"
},
{
"_id": "3de5c447AF6699dcedfe54Da",
"name": "in ipsum aute magna"
},
{
"_id": "d56F8736cF595bfFDe73dc4b",
"name": "aliquip eiusmod dolore aliqua"
}
]
}
}
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": "81bb094c8ceCa35fa42acDEc",
"createdBy": "2dD78A6a41bCBfedFfEf8947",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1c7465ebC8aE66C7F6EC3803",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "2bAbDB26DDcDDffd76Fa48fa",
"name": "tempor veniam reprehenderit"
},
{
"_id": "f43C57eeb95c8eb5cfe9Aa65",
"name": "ad dolor ea est exercitation"
},
{
"_id": "5afE8b39BDeB81959dEd95ec",
"name": "aute exercitation nulla culpa"
}
]
},
"edit": "reprehenderit commodo Lorem in"
}
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"
]
}