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": "ABb26a0Fb4EEde3DFEaDf1AA",
"createdBy": "9ae536f8c2d58D02801A9601",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "c9DC2f9307cDDEC8329ffCbb",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "C2E415017b5B9C5B8ECeFBbC",
"name": "eu amet veniam ex ipsum"
},
{
"_id": "EFEb4dd5ce6bBa2cCEE50aCB",
"name": "eu Lorem consequat"
},
{
"_id": "821f47F6a01CE4bdEa8De352",
"name": "nostrud sit dolore aliquip"
},
{
"_id": "E77aBa88F5f0f0eE9EA21AfF",
"name": "occaecat mollit dolore aute"
}
]
}
}
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": "9ccCd4bE57EE39C402E20c1b",
"createdBy": "BFD1BDEdE278cf5c4dBD29dC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "3aBde312D0D4daa0d6BdE82D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "b7DCceBaFc0Deb0d49dbb053",
"name": "culpa"
},
{
"_id": "e33ED8f65DaC0fCf6ac348c2",
"name": "irure ut"
},
{
"_id": "b7B49aa3dcecbE744DC8eDf7",
"name": "eu pariatur reprehenderit culpa"
},
{
"_id": "a5bce18c2518E7b38a4f7A84",
"name": "dolor anim"
},
{
"_id": "ebEc7dE8eCaE8a250CcfeB85",
"name": "eu dolore ut"
}
]
},
"edit": "est"
}
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"
]
}