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": "44d9e11bBf1849c9a9cf9FD2",
"createdBy": "1fDf7Fc1F7e9b2c691b47fEd",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "CAF315f079f0a82BCd92213c",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "fa7ac9cE1Fc9EA3F2Ec306B1",
"name": "ipsum quis",
"description": "A user-defined object to help group documents."
}
]
}
}
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": "5CB1DDf4cFbCA68eea5EfF0A",
"createdBy": "ac8Dedc395a7BCABECc4b2Bf",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "BDf55BE04c7dBA49EfE2659B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bdC61aC5ba6ebeF651aCADB2",
"name": "in dolor qui mollit",
"description": "A user-defined object to help group documents."
},
{
"_id": "c13FA88AE6F96b3Def47Fcb8",
"name": "et",
"description": "A user-defined object to help group documents."
},
{
"_id": "041CdDc51da13C74A86d5eb9",
"name": "qui",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "do"
}
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"
]
}