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": "F4bF5e431d1E5bbdF4ebcc9f",
"createdBy": "Dc9dA3F9Bd46Cc9eBa16d960",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "bAADB2e370fCFA17bB2EbC7B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "EaaF527221AC97969bD035F1",
"name": "reprehenderit esse"
},
{
"_id": "59EEfBAcDdaebf6d5BB9E63F",
"name": "anim et Duis"
},
{
"_id": "C8906d6ECbecacdcD9f3BACB",
"name": "labore"
},
{
"_id": "89bFFEBd46C51f1d49Dcb61a",
"name": "quis elit deserunt"
},
{
"_id": "46F9Df32802d38825Ee5CddE",
"name": "deserunt laboris"
}
]
}
}
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": "67a4BC79dFbb8a677FC25A70",
"createdBy": "e27Ef67d602ABFfFac5BB235",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "A5fD26CBc6BbdAfdc4571cAc",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "7c5c43A3a4BcdDaeA4aBbeea",
"name": "enim"
},
{
"_id": "AeaaBcBB9EFc848dDAA9FDA8",
"name": "et magna"
},
{
"_id": "a67CD673DdFAa1Df66CdeEdf",
"name": "aliqua proident Excepteur esse"
}
]
},
"edit": "consectetur labore aute"
}
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"
]
}